ProjectsLocationsApisVersionsSpecsResource class

Constructors

ProjectsLocationsApisVersionsSpecsResource(ApiRequester client)

Properties

artifacts ProjectsLocationsApisVersionsSpecsArtifactsResource
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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, {String? filter, int? pageSize, String? pageToken, String? $fields}) Future<ListApiSpecRevisionsResponse>
Lists all revisions of a spec.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
inherited

Operators

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