ProjectsLocationsApisVersionsSpecsResource class Null safety


ProjectsLocationsApisVersionsSpecsResource(ApiRequester client)


artifacts ProjectsLocationsApisVersionsSpecsArtifactsResource
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


create(ApiSpec request, String parent, {String? apiSpecId, String? $fields}) Future<ApiSpec>
Creates a specified spec.
delete(String name, {bool? force, String? $fields}) Future<Empty>
Removes a specified spec, all revisions, and all child resources (e.g., artifacts).
deleteRevision(String name, {String? $fields}) Future<ApiSpec>
Deletes a revision of a spec.
get(String name, {String? $fields}) Future<ApiSpec>
Returns a specified spec.
getContents(String name, {String? $fields}) Future<HttpBody>
Returns the contents of a specified spec.
getIamPolicy(String resource, {int? options_requestedPolicyVersion, String? $fields}) Future<Policy>
Gets the access control policy for a resource.
list(String parent, {String? filter, String? orderBy, int? pageSize, String? pageToken, String? $fields}) Future<ListApiSpecsResponse>
Returns matching specs.
listRevisions(String name, {int? pageSize, String? pageToken, String? $fields}) Future<ListApiSpecRevisionsResponse>
Lists all revisions of a spec.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
patch(ApiSpec request, String name, {bool? allowMissing, String? updateMask, String? $fields}) Future<ApiSpec>
Used to modify a specified spec.
rollback(RollbackApiSpecRequest request, String name, {String? $fields}) Future<ApiSpec>
Sets the current revision to a specified prior revision.
setIamPolicy(SetIamPolicyRequest request, String resource, {String? $fields}) Future<Policy>
Sets the access control policy on the specified resource.
tagRevision(TagApiSpecRevisionRequest request, String name, {String? $fields}) Future<ApiSpec>
Adds a tag to a specified revision of a spec.
testIamPermissions(TestIamPermissionsRequest request, String resource, {String? $fields}) Future<TestIamPermissionsResponse>
Returns permissions that a caller has on the specified resource.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.