Autogenerated update (2017-08-25)
Add: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - cloudtrace_v2 - clouduseraccounts_vm_alpha - consumersurveys_v2 - dlp_v2beta1 - oslogin_v1alpha - playcustomapp_v1 - playmoviespartner_v1 - safebrowsing_v4 - spectrum_v1explorer - speech_v1 - streetviewpublish_v1 - vault_v1 - videointelligence_v1beta1 Update: - acceleratedmobilepageurl_v1 - adexchangebuyer2_v2beta1 - adexchangebuyer_v1_4 - adsense_v1_4 - adsensehost_v4_1 - analytics_v3 - analyticsreporting_v4 - androidenterprise_v1 - androidpublisher_v2 - appengine_v1 - appsactivity_v1 - appstate_v1 - bigquery_v2 - calendar_v3 - classroom_v1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudkms_v1 - cloudmonitoring_v2beta2 - cloudresourcemanager_v1 - compute_beta - compute_v1 - container_v1 - content_v2 - dataflow_v1b3 - dataproc_v1 - datastore_v1 - deploymentmanager_v2 - dfareporting_v2_8 - dns_v1 - doubleclicksearch_v2 - drive_v3 - firebasedynamiclinks_v1 - firebaserules_v1 - fitness_v1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v1 - gmail_v1 - iam_v1 - identitytoolkit_v3 - language_v1 - logging_v2 - manufacturers_v1 - ml_v1 - monitoring_v3 - oauth2_v2 - partners_v2 - people_v1 - plus_domains_v1 - plus_v1 - proximitybeacon_v1beta1 - pubsub_v1 - runtimeconfig_v1 - script_v1 - searchconsole_v1 - servicecontrol_v1 - servicemanagement_v1 - serviceuser_v1 - sheets_v4 - slides_v1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vision_v1 - webmasters_v3 - youtube_analytics_v1 - youtube_partner_v1 - youtubereporting_v1
This commit is contained in:
1 parent
ce32deabcf
commit
2dd396ce6e
315 files changed
+158012
-116092
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -22,37 +22,7 @@ module Google
|
||||
module Apis
|
||||
module IamV1
|
||||
|
||||
class CreateServiceAccountRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListServiceAccountsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryGrantableRolesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Role
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class AuditData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -64,37 +34,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
class BindingDelta
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryGrantableRolesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListServiceAccountKeysResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccountKey
|
||||
class CreateRoleRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -106,19 +52,43 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class CreateServiceAccountRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobResponse
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignJwtResponse
|
||||
class Expr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListRolesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListServiceAccountKeysResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListServiceAccountsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Permission
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -130,77 +100,106 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignJwtRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BindingDelta
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PolicyDelta
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateServiceAccountRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
||||
class QueryGrantableRolesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListServiceAccountsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryGrantableRolesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
||||
end
|
||||
class QueryTestablePermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryTestablePermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Role
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :title, as: 'title'
|
||||
property :name, as: 'name'
|
||||
property :description, as: 'description'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccountKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignBlobResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignJwtRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SignJwtResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UndeleteRoleRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
||||
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
||||
|
||||
end
|
||||
end
|
||||
@@ -213,16 +212,40 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
class BindingDelta
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :unique_id, as: 'uniqueId'
|
||||
property :oauth2_client_id, as: 'oauth2ClientId'
|
||||
property :display_name, as: 'displayName'
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :email, as: 'email'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :action, as: 'action'
|
||||
property :condition, as: 'condition', class: Google::Apis::IamV1::Expr, decorator: Google::Apis::IamV1::Expr::Representation
|
||||
|
||||
property :member, as: 'member'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateRoleRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :role, as: 'role', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
||||
|
||||
property :role_id, as: 'roleId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateServiceAccountKeyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key_algorithm, as: 'keyAlgorithm'
|
||||
property :private_key_type, as: 'privateKeyType'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateServiceAccountRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -232,12 +255,22 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class QueryGrantableRolesRequest
|
||||
class Expr
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :full_resource_name, as: 'fullResourceName'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :page_size, as: 'pageSize'
|
||||
property :description, as: 'description'
|
||||
property :expression, as: 'expression'
|
||||
property :location, as: 'location'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class ListRolesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -249,39 +282,133 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class ListServiceAccountsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Permission
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :custom_roles_support_level, as: 'customRolesSupportLevel'
|
||||
property :description, as: 'description'
|
||||
property :name, as: 'name'
|
||||
property :only_in_predefined_roles, as: 'onlyInPredefinedRoles'
|
||||
property :stage, as: 'stage'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class PolicyDelta
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class QueryGrantableRolesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :full_resource_name, as: 'fullResourceName'
|
||||
property :page_size, as: 'pageSize'
|
||||
property :page_token, as: 'pageToken'
|
||||
property :view, as: 'view'
|
||||
end
|
||||
end
|
||||
|
||||
class QueryGrantableRolesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class QueryTestablePermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :full_resource_name, as: 'fullResourceName'
|
||||
property :page_size, as: 'pageSize'
|
||||
property :page_token, as: 'pageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class QueryTestablePermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :permissions, as: 'permissions', class: Google::Apis::IamV1::Permission, decorator: Google::Apis::IamV1::Permission::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Role
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deleted, as: 'deleted'
|
||||
property :description, as: 'description'
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
collection :included_permissions, as: 'includedPermissions'
|
||||
property :name, as: 'name'
|
||||
property :stage, as: 'stage'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :email, as: 'email'
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :name, as: 'name'
|
||||
property :oauth2_client_id, as: 'oauth2ClientId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :unique_id, as: 'uniqueId'
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAccountKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
||||
property :key_algorithm, as: 'keyAlgorithm'
|
||||
property :name, as: 'name'
|
||||
property :valid_before_time, as: 'validBeforeTime'
|
||||
property :key_algorithm, as: 'keyAlgorithm'
|
||||
property :valid_after_time, as: 'validAfterTime'
|
||||
property :private_key_type, as: 'privateKeyType'
|
||||
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateServiceAccountKeyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :include_public_key_data, as: 'includePublicKeyData'
|
||||
property :key_algorithm, as: 'keyAlgorithm'
|
||||
property :private_key_type, as: 'privateKeyType'
|
||||
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
||||
property :valid_after_time, as: 'validAfterTime'
|
||||
property :valid_before_time, as: 'validBeforeTime'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SignBlobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -293,24 +420,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SignJwtResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :signed_jwt, as: 'signedJwt'
|
||||
property :key_id, as: 'keyId'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SignJwtRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -318,28 +427,32 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AuditData
|
||||
class SignJwtResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
||||
|
||||
property :key_id, as: 'keyId'
|
||||
property :signed_jwt, as: 'signedJwt'
|
||||
end
|
||||
end
|
||||
|
||||
class BindingDelta
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :member, as: 'member'
|
||||
property :role, as: 'role'
|
||||
property :action, as: 'action'
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class PolicyDelta
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class UndeleteRoleRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -49,19 +49,12 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Updates a ServiceAccount.
|
||||
# Currently, only the following fields are updatable:
|
||||
# `display_name` .
|
||||
# The `etag` is mandatory.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Requests using `-` as a wildcard for the project will infer the project
|
||||
# from the `account` and the `account` value can be the `email` address or
|
||||
# the `unique_id` of the service account.
|
||||
# In responses the resource name will always be in the format
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# @param [Google::Apis::IamV1::ServiceAccount] service_account_object
|
||||
# Creates a new Role.
|
||||
# @param [String] parent
|
||||
# The resource name of the parent resource in one of the following formats:
|
||||
# `organizations/`ORGANIZATION_ID``
|
||||
# `projects/`PROJECT_ID``
|
||||
# @param [Google::Apis::IamV1::CreateRoleRequest] create_role_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -71,68 +64,39 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::ServiceAccount]
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
||||
command.request_object = service_account_object
|
||||
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
||||
command.response_class = Google::Apis::IamV1::ServiceAccount
|
||||
command.params['name'] = name unless name.nil?
|
||||
def create_organization_role(parent, create_role_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/roles', options)
|
||||
command.request_representation = Google::Apis::IamV1::CreateRoleRequest::Representation
|
||||
command.request_object = create_role_request_object
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Tests the specified permissions against the IAM access control policy
|
||||
# for a ServiceAccount.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a ServiceAccount.
|
||||
# Soft deletes a role. The role is suspended and cannot be used to create new
|
||||
# IAM Policy Bindings.
|
||||
# The Role will not be included in `ListRoles()` unless `show_deleted` is set
|
||||
# in the `ListRolesRequest`. The Role contains the deleted boolean set.
|
||||
# Existing Bindings remains, but are inactive. The Role can be undeleted
|
||||
# within 7 days. After 7 days the Role is deleted and all Bindings associated
|
||||
# with the role are removed.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account. The `account` value can be the `email` address or the
|
||||
# `unique_id` of the service account.
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [String] etag
|
||||
# Used to perform a consistent read-modify-write.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -142,32 +106,31 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Empty]
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def delete_organization_role(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
||||
command.response_class = Google::Apis::IamV1::Empty
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['etag'] = etag unless etag.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Signs a blob using a service account's system-managed private key.
|
||||
# Gets a Role definition.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account. The `account` value can be the `email` address or the
|
||||
# `unique_id` of the service account.
|
||||
# @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `roles/`ROLE_NAME``
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -177,38 +140,38 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::SignBlobResponse]
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
|
||||
command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
|
||||
command.request_object = sign_blob_request_object
|
||||
command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::SignBlobResponse
|
||||
def get_organization_role(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists ServiceAccounts for a project.
|
||||
# @param [String] name
|
||||
# Required. The resource name of the project associated with the service
|
||||
# accounts, such as `projects/my-project-123`.
|
||||
# @param [String] page_token
|
||||
# Optional pagination token returned in an earlier
|
||||
# ListServiceAccountsResponse.next_page_token.
|
||||
# Lists the Roles defined on a resource.
|
||||
# @param [String] parent
|
||||
# The resource name of the parent resource in one of the following formats:
|
||||
# `` (empty string) -- this refers to curated roles.
|
||||
# `organizations/`ORGANIZATION_ID``
|
||||
# `projects/`PROJECT_ID``
|
||||
# @param [Fixnum] page_size
|
||||
# Optional limit on the number of service accounts to include in the
|
||||
# response. Further accounts can subsequently be obtained by including the
|
||||
# ListServiceAccountsResponse.next_page_token
|
||||
# in a subsequent request.
|
||||
# Optional limit on the number of roles to include in the response.
|
||||
# @param [String] page_token
|
||||
# Optional pagination token returned in an earlier ListRolesResponse.
|
||||
# @param [Boolean] show_deleted
|
||||
# Include Roles that have been deleted.
|
||||
# @param [String] view
|
||||
# Optional view for the returned Role objects.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -218,21 +181,356 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::IamV1::ListRolesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::ListServiceAccountsResponse]
|
||||
# @return [Google::Apis::IamV1::ListRolesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
|
||||
command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
def list_organization_roles(parent, page_size: nil, page_token: nil, show_deleted: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/roles', options)
|
||||
command.response_representation = Google::Apis::IamV1::ListRolesResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::ListRolesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a Role definition.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `roles/`ROLE_NAME``
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [Google::Apis::IamV1::Role] role_object
|
||||
# @param [String] update_mask
|
||||
# A mask describing which fields in the Role have changed.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_organization_role(name, role_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.request_object = role_object
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Undelete a Role, bringing it back in its previous state.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [Google::Apis::IamV1::UndeleteRoleRequest] undelete_role_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def undelete_organization_role(name, undelete_role_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:undelete', options)
|
||||
command.request_representation = Google::Apis::IamV1::UndeleteRoleRequest::Representation
|
||||
command.request_object = undelete_role_request_object
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the permissions testable on a resource.
|
||||
# A permission is testable if it can be tested for an identity on a resource.
|
||||
# @param [Google::Apis::IamV1::QueryTestablePermissionsRequest] query_testable_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::QueryTestablePermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::QueryTestablePermissionsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def query_testable_permissions(query_testable_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/permissions:queryTestablePermissions', options)
|
||||
command.request_representation = Google::Apis::IamV1::QueryTestablePermissionsRequest::Representation
|
||||
command.request_object = query_testable_permissions_request_object
|
||||
command.response_representation = Google::Apis::IamV1::QueryTestablePermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::QueryTestablePermissionsResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new Role.
|
||||
# @param [String] parent
|
||||
# The resource name of the parent resource in one of the following formats:
|
||||
# `organizations/`ORGANIZATION_ID``
|
||||
# `projects/`PROJECT_ID``
|
||||
# @param [Google::Apis::IamV1::CreateRoleRequest] create_role_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_role(parent, create_role_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/roles', options)
|
||||
command.request_representation = Google::Apis::IamV1::CreateRoleRequest::Representation
|
||||
command.request_object = create_role_request_object
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Soft deletes a role. The role is suspended and cannot be used to create new
|
||||
# IAM Policy Bindings.
|
||||
# The Role will not be included in `ListRoles()` unless `show_deleted` is set
|
||||
# in the `ListRolesRequest`. The Role contains the deleted boolean set.
|
||||
# Existing Bindings remains, but are inactive. The Role can be undeleted
|
||||
# within 7 days. After 7 days the Role is deleted and all Bindings associated
|
||||
# with the role are removed.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [String] etag
|
||||
# Used to perform a consistent read-modify-write.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_role(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['etag'] = etag unless etag.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a Role definition.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `roles/`ROLE_NAME``
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_role(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the Roles defined on a resource.
|
||||
# @param [String] parent
|
||||
# The resource name of the parent resource in one of the following formats:
|
||||
# `` (empty string) -- this refers to curated roles.
|
||||
# `organizations/`ORGANIZATION_ID``
|
||||
# `projects/`PROJECT_ID``
|
||||
# @param [Fixnum] page_size
|
||||
# Optional limit on the number of roles to include in the response.
|
||||
# @param [String] page_token
|
||||
# Optional pagination token returned in an earlier ListRolesResponse.
|
||||
# @param [Boolean] show_deleted
|
||||
# Include Roles that have been deleted.
|
||||
# @param [String] view
|
||||
# Optional view for the returned Role objects.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::ListRolesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::ListRolesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_roles(parent, page_size: nil, page_token: nil, show_deleted: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/roles', options)
|
||||
command.response_representation = Google::Apis::IamV1::ListRolesResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::ListRolesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a Role definition.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `roles/`ROLE_NAME``
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [Google::Apis::IamV1::Role] role_object
|
||||
# @param [String] update_mask
|
||||
# A mask describing which fields in the Role have changed.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_role(name, role_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.request_object = role_object
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Undelete a Role, bringing it back in its previous state.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [Google::Apis::IamV1::UndeleteRoleRequest] undelete_role_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def undelete_project_role(name, undelete_role_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:undelete', options)
|
||||
command.request_representation = Google::Apis::IamV1::UndeleteRoleRequest::Representation
|
||||
command.request_object = undelete_role_request_object
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -273,6 +571,147 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a ServiceAccount.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account. The `account` value can be the `email` address or the
|
||||
# `unique_id` of the service account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
||||
command.response_class = Google::Apis::IamV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a ServiceAccount.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account. The `account` value can be the `email` address or the
|
||||
# `unique_id` of the service account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::ServiceAccount]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
||||
command.response_class = Google::Apis::IamV1::ServiceAccount
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the IAM access control policy for a
|
||||
# ServiceAccount.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
||||
command.response_class = Google::Apis::IamV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists ServiceAccounts for a project.
|
||||
# @param [String] name
|
||||
# Required. The resource name of the project associated with the service
|
||||
# accounts, such as `projects/my-project-123`.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional limit on the number of service accounts to include in the
|
||||
# response. Further accounts can subsequently be obtained by including the
|
||||
# ListServiceAccountsResponse.next_page_token
|
||||
# in a subsequent request.
|
||||
# @param [String] page_token
|
||||
# Optional pagination token returned in an earlier
|
||||
# ListServiceAccountsResponse.next_page_token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::ListServiceAccountsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_service_accounts(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
|
||||
command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the IAM access control policy for a
|
||||
# ServiceAccount.
|
||||
# @param [String] resource
|
||||
@@ -308,6 +747,43 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Signs a blob using a service account's system-managed private key.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account. The `account` value can be the `email` address or the
|
||||
# `unique_id` of the service account.
|
||||
# @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::SignBlobResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
|
||||
command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
|
||||
command.request_object = sign_blob_request_object
|
||||
command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::SignBlobResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Signs a JWT using a service account's system-managed private key.
|
||||
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
|
||||
# an expiry time of one hour by default. If you request an expiry time of
|
||||
@@ -348,11 +824,12 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the IAM access control policy for a
|
||||
# ServiceAccount.
|
||||
# Tests the specified permissions against the IAM access control policy
|
||||
# for a ServiceAccount.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -362,31 +839,39 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
|
||||
# @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Policy]
|
||||
# @return [Google::Apis::IamV1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
||||
command.response_class = Google::Apis::IamV1::Policy
|
||||
def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a ServiceAccount.
|
||||
# Updates a ServiceAccount.
|
||||
# Currently, only the following fields are updatable:
|
||||
# `display_name` .
|
||||
# The `etag` is mandatory.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# Using `-` as a wildcard for the project will infer the project from
|
||||
# the account. The `account` value can be the `email` address or the
|
||||
# `unique_id` of the service account.
|
||||
# Requests using `-` as a wildcard for the project will infer the project
|
||||
# from the `account` and the `account` value can be the `email` address or
|
||||
# the `unique_id` of the service account.
|
||||
# In responses the resource name will always be in the format
|
||||
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
||||
# @param [Google::Apis::IamV1::ServiceAccount] service_account_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -404,8 +889,10 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
||||
command.request_object = service_account_object
|
||||
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
||||
command.response_class = Google::Apis::IamV1::ServiceAccount
|
||||
command.params['name'] = name unless name.nil?
|
||||
@@ -564,6 +1051,84 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a Role definition.
|
||||
# @param [String] name
|
||||
# The resource name of the role in one of the following formats:
|
||||
# `roles/`ROLE_NAME``
|
||||
# `organizations/`ORGANIZATION_ID`/roles/`ROLE_NAME``
|
||||
# `projects/`PROJECT_ID`/roles/`ROLE_NAME``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::Role] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::Role]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_role(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::IamV1::Role::Representation
|
||||
command.response_class = Google::Apis::IamV1::Role
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the Roles defined on a resource.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional limit on the number of roles to include in the response.
|
||||
# @param [String] page_token
|
||||
# Optional pagination token returned in an earlier ListRolesResponse.
|
||||
# @param [String] parent
|
||||
# The resource name of the parent resource in one of the following formats:
|
||||
# `` (empty string) -- this refers to curated roles.
|
||||
# `organizations/`ORGANIZATION_ID``
|
||||
# `projects/`PROJECT_ID``
|
||||
# @param [Boolean] show_deleted
|
||||
# Include Roles that have been deleted.
|
||||
# @param [String] view
|
||||
# Optional view for the returned Role objects.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::IamV1::ListRolesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::IamV1::ListRolesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_roles(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/roles', options)
|
||||
command.response_representation = Google::Apis::IamV1::ListRolesResponse::Representation
|
||||
command.response_class = Google::Apis::IamV1::ListRolesResponse
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['parent'] = parent unless parent.nil?
|
||||
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Queries roles that can be granted on a particular resource.
|
||||
# A role is grantable if it can be used as the role in a binding for a policy
|
||||
# for that resource.
|
||||
|
||||
Reference in new issue
Block a user