Autogenerated update (2018-03-22)
Delete: - clouduseraccounts_alpha - clouduseraccounts_beta - clouduseraccounts_vm_alpha - clouduseraccounts_vm_beta Update: - androidpublisher_v2 - appengine_v1 - appengine_v1alpha - appengine_v1beta - appengine_v1beta4 - appengine_v1beta5 - cloudiot_v1 - cloudkms_v1 - dlp_v2 - dlp_v2beta1 - dlp_v2beta2 - manufacturers_v1 - servicemanagement_v1 - serviceuser_v1 - toolresults_v1beta3
This commit is contained in:
parent
6e64748848
commit
066195ba9c
|
@ -6776,13 +6776,18 @@
|
|||
"/androidpublisher:v2/SubscriptionPurchase/cancelReason": cancel_reason
|
||||
"/androidpublisher:v2/SubscriptionPurchase/countryCode": country_code
|
||||
"/androidpublisher:v2/SubscriptionPurchase/developerPayload": developer_payload
|
||||
"/androidpublisher:v2/SubscriptionPurchase/emailAddress": email_address
|
||||
"/androidpublisher:v2/SubscriptionPurchase/expiryTimeMillis": expiry_time_millis
|
||||
"/androidpublisher:v2/SubscriptionPurchase/familyName": family_name
|
||||
"/androidpublisher:v2/SubscriptionPurchase/givenName": given_name
|
||||
"/androidpublisher:v2/SubscriptionPurchase/kind": kind
|
||||
"/androidpublisher:v2/SubscriptionPurchase/linkedPurchaseToken": linked_purchase_token
|
||||
"/androidpublisher:v2/SubscriptionPurchase/orderId": order_id
|
||||
"/androidpublisher:v2/SubscriptionPurchase/paymentState": payment_state
|
||||
"/androidpublisher:v2/SubscriptionPurchase/priceAmountMicros": price_amount_micros
|
||||
"/androidpublisher:v2/SubscriptionPurchase/priceCurrencyCode": price_currency_code
|
||||
"/androidpublisher:v2/SubscriptionPurchase/profileId": profile_id
|
||||
"/androidpublisher:v2/SubscriptionPurchase/profileName": profile_name
|
||||
"/androidpublisher:v2/SubscriptionPurchase/purchaseType": purchase_type
|
||||
"/androidpublisher:v2/SubscriptionPurchase/startTimeMillis": start_time_millis
|
||||
"/androidpublisher:v2/SubscriptionPurchase/userCancellationTimeMillis": user_cancellation_time_millis
|
||||
|
@ -7128,11 +7133,16 @@
|
|||
"/appengine:v1/CertificateRawData": certificate_raw_data
|
||||
"/appengine:v1/CertificateRawData/privateKey": private_key
|
||||
"/appengine:v1/CertificateRawData/publicCertificate": public_certificate
|
||||
"/appengine:v1/CloudBuildOptions": cloud_build_options
|
||||
"/appengine:v1/CloudBuildOptions/appYamlPath": app_yaml_path
|
||||
"/appengine:v1/CloudBuildOptions/cloudBuildTimeout": cloud_build_timeout
|
||||
"/appengine:v1/ContainerInfo": container_info
|
||||
"/appengine:v1/ContainerInfo/image": image
|
||||
"/appengine:v1/CpuUtilization": cpu_utilization
|
||||
"/appengine:v1/CpuUtilization/aggregationWindowLength": aggregation_window_length
|
||||
"/appengine:v1/CpuUtilization/targetUtilization": target_utilization
|
||||
"/appengine:v1/CreateVersionMetadataV1": create_version_metadata_v1
|
||||
"/appengine:v1/CreateVersionMetadataV1/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1/CreateVersionMetadataV1Alpha": create_version_metadata_v1_alpha
|
||||
"/appengine:v1/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
|
||||
|
@ -7140,6 +7150,7 @@
|
|||
"/appengine:v1/DebugInstanceRequest": debug_instance_request
|
||||
"/appengine:v1/DebugInstanceRequest/sshKey": ssh_key
|
||||
"/appengine:v1/Deployment": deployment
|
||||
"/appengine:v1/Deployment/cloudBuildOptions": cloud_build_options
|
||||
"/appengine:v1/Deployment/container": container
|
||||
"/appengine:v1/Deployment/files": files
|
||||
"/appengine:v1/Deployment/files/file": file
|
||||
|
@ -7297,6 +7308,7 @@
|
|||
"/appengine:v1/OperationMetadataExperimental/target": target
|
||||
"/appengine:v1/OperationMetadataExperimental/user": user
|
||||
"/appengine:v1/OperationMetadataV1": operation_metadata_v1
|
||||
"/appengine:v1/OperationMetadataV1/createVersionMetadata": create_version_metadata
|
||||
"/appengine:v1/OperationMetadataV1/endTime": end_time
|
||||
"/appengine:v1/OperationMetadataV1/ephemeralMessage": ephemeral_message
|
||||
"/appengine:v1/OperationMetadataV1/insertTime": insert_time
|
||||
|
@ -7609,6 +7621,8 @@
|
|||
"/appengine:v1alpha/CertificateRawData": certificate_raw_data
|
||||
"/appengine:v1alpha/CertificateRawData/privateKey": private_key
|
||||
"/appengine:v1alpha/CertificateRawData/publicCertificate": public_certificate
|
||||
"/appengine:v1alpha/CreateVersionMetadataV1": create_version_metadata_v1
|
||||
"/appengine:v1alpha/CreateVersionMetadataV1/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1alpha/CreateVersionMetadataV1Alpha": create_version_metadata_v1_alpha
|
||||
"/appengine:v1alpha/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1alpha/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
|
||||
|
@ -7676,6 +7690,7 @@
|
|||
"/appengine:v1alpha/OperationMetadataExperimental/target": target
|
||||
"/appengine:v1alpha/OperationMetadataExperimental/user": user
|
||||
"/appengine:v1alpha/OperationMetadataV1": operation_metadata_v1
|
||||
"/appengine:v1alpha/OperationMetadataV1/createVersionMetadata": create_version_metadata
|
||||
"/appengine:v1alpha/OperationMetadataV1/endTime": end_time
|
||||
"/appengine:v1alpha/OperationMetadataV1/ephemeralMessage": ephemeral_message
|
||||
"/appengine:v1alpha/OperationMetadataV1/insertTime": insert_time
|
||||
|
@ -7859,6 +7874,8 @@
|
|||
"/appengine:v1beta/CpuUtilization": cpu_utilization
|
||||
"/appengine:v1beta/CpuUtilization/aggregationWindowLength": aggregation_window_length
|
||||
"/appengine:v1beta/CpuUtilization/targetUtilization": target_utilization
|
||||
"/appengine:v1beta/CreateVersionMetadataV1": create_version_metadata_v1
|
||||
"/appengine:v1beta/CreateVersionMetadataV1/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta/CreateVersionMetadataV1Alpha": create_version_metadata_v1_alpha
|
||||
"/appengine:v1beta/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
|
||||
|
@ -7893,6 +7910,7 @@
|
|||
"/appengine:v1beta/EndpointsApiService": endpoints_api_service
|
||||
"/appengine:v1beta/EndpointsApiService/configId": config_id
|
||||
"/appengine:v1beta/EndpointsApiService/name": name
|
||||
"/appengine:v1beta/EndpointsApiService/rolloutStrategy": rollout_strategy
|
||||
"/appengine:v1beta/ErrorHandler": error_handler
|
||||
"/appengine:v1beta/ErrorHandler/errorCode": error_code
|
||||
"/appengine:v1beta/ErrorHandler/mimeType": mime_type
|
||||
|
@ -8036,6 +8054,7 @@
|
|||
"/appengine:v1beta/OperationMetadataExperimental/target": target
|
||||
"/appengine:v1beta/OperationMetadataExperimental/user": user
|
||||
"/appengine:v1beta/OperationMetadataV1": operation_metadata_v1
|
||||
"/appengine:v1beta/OperationMetadataV1/createVersionMetadata": create_version_metadata
|
||||
"/appengine:v1beta/OperationMetadataV1/endTime": end_time
|
||||
"/appengine:v1beta/OperationMetadataV1/ephemeralMessage": ephemeral_message
|
||||
"/appengine:v1beta/OperationMetadataV1/insertTime": insert_time
|
||||
|
@ -8373,6 +8392,8 @@
|
|||
"/appengine:v1beta4/CpuUtilization": cpu_utilization
|
||||
"/appengine:v1beta4/CpuUtilization/aggregationWindowLength": aggregation_window_length
|
||||
"/appengine:v1beta4/CpuUtilization/targetUtilization": target_utilization
|
||||
"/appengine:v1beta4/CreateVersionMetadataV1": create_version_metadata_v1
|
||||
"/appengine:v1beta4/CreateVersionMetadataV1/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta4/CreateVersionMetadataV1Alpha": create_version_metadata_v1_alpha
|
||||
"/appengine:v1beta4/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta4/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
|
||||
|
@ -8393,6 +8414,7 @@
|
|||
"/appengine:v1beta4/EndpointsApiService": endpoints_api_service
|
||||
"/appengine:v1beta4/EndpointsApiService/configId": config_id
|
||||
"/appengine:v1beta4/EndpointsApiService/name": name
|
||||
"/appengine:v1beta4/EndpointsApiService/rolloutStrategy": rollout_strategy
|
||||
"/appengine:v1beta4/ErrorHandler": error_handler
|
||||
"/appengine:v1beta4/ErrorHandler/errorCode": error_code
|
||||
"/appengine:v1beta4/ErrorHandler/mimeType": mime_type
|
||||
|
@ -8503,6 +8525,7 @@
|
|||
"/appengine:v1beta4/OperationMetadataExperimental/target": target
|
||||
"/appengine:v1beta4/OperationMetadataExperimental/user": user
|
||||
"/appengine:v1beta4/OperationMetadataV1": operation_metadata_v1
|
||||
"/appengine:v1beta4/OperationMetadataV1/createVersionMetadata": create_version_metadata
|
||||
"/appengine:v1beta4/OperationMetadataV1/endTime": end_time
|
||||
"/appengine:v1beta4/OperationMetadataV1/ephemeralMessage": ephemeral_message
|
||||
"/appengine:v1beta4/OperationMetadataV1/insertTime": insert_time
|
||||
|
@ -8757,6 +8780,8 @@
|
|||
"/appengine:v1beta5/CpuUtilization": cpu_utilization
|
||||
"/appengine:v1beta5/CpuUtilization/aggregationWindowLength": aggregation_window_length
|
||||
"/appengine:v1beta5/CpuUtilization/targetUtilization": target_utilization
|
||||
"/appengine:v1beta5/CreateVersionMetadataV1": create_version_metadata_v1
|
||||
"/appengine:v1beta5/CreateVersionMetadataV1/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta5/CreateVersionMetadataV1Alpha": create_version_metadata_v1_alpha
|
||||
"/appengine:v1beta5/CreateVersionMetadataV1Alpha/cloudBuildId": cloud_build_id
|
||||
"/appengine:v1beta5/CreateVersionMetadataV1Beta": create_version_metadata_v1_beta
|
||||
|
@ -8777,6 +8802,7 @@
|
|||
"/appengine:v1beta5/EndpointsApiService": endpoints_api_service
|
||||
"/appengine:v1beta5/EndpointsApiService/configId": config_id
|
||||
"/appengine:v1beta5/EndpointsApiService/name": name
|
||||
"/appengine:v1beta5/EndpointsApiService/rolloutStrategy": rollout_strategy
|
||||
"/appengine:v1beta5/ErrorHandler": error_handler
|
||||
"/appengine:v1beta5/ErrorHandler/errorCode": error_code
|
||||
"/appengine:v1beta5/ErrorHandler/mimeType": mime_type
|
||||
|
@ -8884,6 +8910,7 @@
|
|||
"/appengine:v1beta5/OperationMetadataExperimental/target": target
|
||||
"/appengine:v1beta5/OperationMetadataExperimental/user": user
|
||||
"/appengine:v1beta5/OperationMetadataV1": operation_metadata_v1
|
||||
"/appengine:v1beta5/OperationMetadataV1/createVersionMetadata": create_version_metadata
|
||||
"/appengine:v1beta5/OperationMetadataV1/endTime": end_time
|
||||
"/appengine:v1beta5/OperationMetadataV1/ephemeralMessage": ephemeral_message
|
||||
"/appengine:v1beta5/OperationMetadataV1/insertTime": insert_time
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180318'
|
||||
REVISION = '20180319'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -1383,11 +1383,29 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :developer_payload
|
||||
|
||||
# The email address of the user when the subscription was purchased. Only
|
||||
# present for purchases made with 'Subscribe with Google'.
|
||||
# Corresponds to the JSON property `emailAddress`
|
||||
# @return [String]
|
||||
attr_accessor :email_address
|
||||
|
||||
# Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
# Corresponds to the JSON property `expiryTimeMillis`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :expiry_time_millis
|
||||
|
||||
# The family name of the user when the subscription was purchased. Only present
|
||||
# for purchases made with 'Subscribe with Google'.
|
||||
# Corresponds to the JSON property `familyName`
|
||||
# @return [String]
|
||||
attr_accessor :family_name
|
||||
|
||||
# The given name of the user when the subscription was purchased. Only present
|
||||
# for purchases made with 'Subscribe with Google'.
|
||||
# Corresponds to the JSON property `givenName`
|
||||
# @return [String]
|
||||
attr_accessor :given_name
|
||||
|
||||
# This kind represents a subscriptionPurchase object in the androidpublisher
|
||||
# service.
|
||||
# Corresponds to the JSON property `kind`
|
||||
|
@ -1436,6 +1454,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :price_currency_code
|
||||
|
||||
# The profile id of the user when the subscription was purchased. Only present
|
||||
# for purchases made with 'Subscribe with Google'.
|
||||
# Corresponds to the JSON property `profileId`
|
||||
# @return [String]
|
||||
attr_accessor :profile_id
|
||||
|
||||
# The profile name of the user when the subscription was purchased. Only present
|
||||
# for purchases made with 'Subscribe with Google'.
|
||||
# Corresponds to the JSON property `profileName`
|
||||
# @return [String]
|
||||
attr_accessor :profile_name
|
||||
|
||||
# The type of purchase of the subscription. This field is only set if this
|
||||
# purchase was not made using the standard in-app billing flow. Possible values
|
||||
# are:
|
||||
|
@ -1465,13 +1495,18 @@ module Google
|
|||
@cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
|
||||
@country_code = args[:country_code] if args.key?(:country_code)
|
||||
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
||||
@email_address = args[:email_address] if args.key?(:email_address)
|
||||
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
|
||||
@family_name = args[:family_name] if args.key?(:family_name)
|
||||
@given_name = args[:given_name] if args.key?(:given_name)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
|
||||
@order_id = args[:order_id] if args.key?(:order_id)
|
||||
@payment_state = args[:payment_state] if args.key?(:payment_state)
|
||||
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
|
||||
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
|
||||
@profile_id = args[:profile_id] if args.key?(:profile_id)
|
||||
@profile_name = args[:profile_name] if args.key?(:profile_name)
|
||||
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
||||
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
||||
@user_cancellation_time_millis = args[:user_cancellation_time_millis] if args.key?(:user_cancellation_time_millis)
|
||||
|
|
|
@ -746,13 +746,18 @@ module Google
|
|||
property :cancel_reason, as: 'cancelReason'
|
||||
property :country_code, as: 'countryCode'
|
||||
property :developer_payload, as: 'developerPayload'
|
||||
property :email_address, as: 'emailAddress'
|
||||
property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
|
||||
property :family_name, as: 'familyName'
|
||||
property :given_name, as: 'givenName'
|
||||
property :kind, as: 'kind'
|
||||
property :linked_purchase_token, as: 'linkedPurchaseToken'
|
||||
property :order_id, as: 'orderId'
|
||||
property :payment_state, as: 'paymentState'
|
||||
property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
|
||||
property :price_currency_code, as: 'priceCurrencyCode'
|
||||
property :profile_id, as: 'profileId'
|
||||
property :profile_name, as: 'profileName'
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
||||
property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180301'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -498,6 +498,36 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Options for the build operations performed as a part of the version deployment.
|
||||
# Only applicable for App Engine flexible environment when creating a version
|
||||
# using source code directly.
|
||||
class CloudBuildOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Path to the yaml file used in deployment, used to determine runtime
|
||||
# configuration details.Required for flexible environment builds.See https://
|
||||
# cloud.google.com/appengine/docs/standard/python/config/appref for more details.
|
||||
# Corresponds to the JSON property `appYamlPath`
|
||||
# @return [String]
|
||||
attr_accessor :app_yaml_path
|
||||
|
||||
# The Cloud Build timeout used as part of any dependent builds performed by
|
||||
# version creation. Defaults to 10 minutes.
|
||||
# Corresponds to the JSON property `cloudBuildTimeout`
|
||||
# @return [String]
|
||||
attr_accessor :cloud_build_timeout
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@app_yaml_path = args[:app_yaml_path] if args.key?(:app_yaml_path)
|
||||
@cloud_build_timeout = args[:cloud_build_timeout] if args.key?(:cloud_build_timeout)
|
||||
end
|
||||
end
|
||||
|
||||
# Docker image that is used to create a container and start a VM instance for
|
||||
# the version that you deploy. Only applicable for instances running in the App
|
||||
# Engine flexible environment.
|
||||
|
@ -546,6 +576,27 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Cloud Build ID if one was created as part of the version create. @
|
||||
# OutputOnly
|
||||
# Corresponds to the JSON property `cloudBuildId`
|
||||
# @return [String]
|
||||
attr_accessor :cloud_build_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cloud_build_id = args[:cloud_build_id] if args.key?(:cloud_build_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1alpha.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1Alpha
|
||||
|
@ -615,6 +666,13 @@ module Google
|
|||
class Deployment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Options for the build operations performed as a part of the version deployment.
|
||||
# Only applicable for App Engine flexible environment when creating a version
|
||||
# using source code directly.
|
||||
# Corresponds to the JSON property `cloudBuildOptions`
|
||||
# @return [Google::Apis::AppengineV1::CloudBuildOptions]
|
||||
attr_accessor :cloud_build_options
|
||||
|
||||
# Docker image that is used to create a container and start a VM instance for
|
||||
# the version that you deploy. Only applicable for instances running in the App
|
||||
# Engine flexible environment.
|
||||
|
@ -640,6 +698,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cloud_build_options = args[:cloud_build_options] if args.key?(:cloud_build_options)
|
||||
@container = args[:container] if args.key?(:container)
|
||||
@files = args[:files] if args.key?(:files)
|
||||
@zip = args[:zip] if args.key?(:zip)
|
||||
|
@ -745,9 +804,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# The fields here refer to the name and configuration id of a "service" resource
|
||||
# in the Service Management API (https://cloud.google.com/service-management/
|
||||
# overview).
|
||||
class EndpointsApiService
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -1776,6 +1836,12 @@ module Google
|
|||
class OperationMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
# Corresponds to the JSON property `createVersionMetadata`
|
||||
# @return [Google::Apis::AppengineV1::CreateVersionMetadataV1]
|
||||
attr_accessor :create_version_metadata
|
||||
|
||||
# Time that this operation completed.@OutputOnly
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -1820,6 +1886,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_version_metadata = args[:create_version_metadata] if args.key?(:create_version_metadata)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
|
@ -2626,9 +2693,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# The fields here refer to the name and configuration id of a "service" resource
|
||||
# in the Service Management API (https://cloud.google.com/service-management/
|
||||
# overview).
|
||||
# Corresponds to the JSON property `endpointsApiService`
|
||||
# @return [Google::Apis::AppengineV1::EndpointsApiService]
|
||||
attr_accessor :endpoints_api_service
|
||||
|
|
|
@ -82,6 +82,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CloudBuildOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ContainerInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -94,6 +100,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -537,6 +549,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CloudBuildOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :app_yaml_path, as: 'appYamlPath'
|
||||
property :cloud_build_timeout, as: 'cloudBuildTimeout'
|
||||
end
|
||||
end
|
||||
|
||||
class ContainerInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -552,6 +572,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_build_id, as: 'cloudBuildId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -576,6 +603,8 @@ module Google
|
|||
class Deployment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_build_options, as: 'cloudBuildOptions', class: Google::Apis::AppengineV1::CloudBuildOptions, decorator: Google::Apis::AppengineV1::CloudBuildOptions::Representation
|
||||
|
||||
property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation
|
||||
|
||||
hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation
|
||||
|
@ -876,6 +905,8 @@ module Google
|
|||
class OperationMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1::CreateVersionMetadataV1, decorator: Google::Apis::AppengineV1::CreateVersionMetadataV1::Representation
|
||||
|
||||
property :end_time, as: 'endTime'
|
||||
property :ephemeral_message, as: 'ephemeralMessage'
|
||||
property :insert_time, as: 'insertTime'
|
||||
|
|
|
@ -821,7 +821,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# Gets information about a location.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Resource name for the location.
|
||||
# @param [String] locations_id
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1alpha
|
||||
VERSION = 'V1alpha'
|
||||
REVISION = '20180301'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -165,6 +165,27 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Cloud Build ID if one was created as part of the version create. @
|
||||
# OutputOnly
|
||||
# Corresponds to the JSON property `cloudBuildId`
|
||||
# @return [String]
|
||||
attr_accessor :cloud_build_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cloud_build_id = args[:cloud_build_id] if args.key?(:cloud_build_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1alpha.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1Alpha
|
||||
|
@ -639,6 +660,12 @@ module Google
|
|||
class OperationMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
# Corresponds to the JSON property `createVersionMetadata`
|
||||
# @return [Google::Apis::AppengineV1alpha::CreateVersionMetadataV1]
|
||||
attr_accessor :create_version_metadata
|
||||
|
||||
# Time that this operation completed.@OutputOnly
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -683,6 +710,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_version_metadata = args[:create_version_metadata] if args.key?(:create_version_metadata)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
|
|
|
@ -40,6 +40,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -199,6 +205,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_build_id, as: 'cloudBuildId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -330,6 +343,8 @@ module Google
|
|||
class OperationMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1, decorator: Google::Apis::AppengineV1alpha::CreateVersionMetadataV1::Representation
|
||||
|
||||
property :end_time, as: 'endTime'
|
||||
property :ephemeral_message, as: 'ephemeralMessage'
|
||||
property :insert_time, as: 'insertTime'
|
||||
|
|
|
@ -471,7 +471,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# Gets information about a location.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Resource name for the location.
|
||||
# @param [String] locations_id
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20180301'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -608,6 +608,27 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Cloud Build ID if one was created as part of the version create. @
|
||||
# OutputOnly
|
||||
# Corresponds to the JSON property `cloudBuildId`
|
||||
# @return [String]
|
||||
attr_accessor :cloud_build_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cloud_build_id = args[:cloud_build_id] if args.key?(:cloud_build_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1alpha.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1Alpha
|
||||
|
@ -868,9 +889,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# The fields here refer to the name and configuration id of a "service" resource
|
||||
# in the Service Management API (https://cloud.google.com/service-management/
|
||||
# overview).
|
||||
class EndpointsApiService
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -889,6 +911,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED,
|
||||
# config_id must be omitted.
|
||||
# Corresponds to the JSON property `rolloutStrategy`
|
||||
# @return [String]
|
||||
attr_accessor :rollout_strategy
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -897,6 +925,7 @@ module Google
|
|||
def update!(**args)
|
||||
@config_id = args[:config_id] if args.key?(:config_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@rollout_strategy = args[:rollout_strategy] if args.key?(:rollout_strategy)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1945,6 +1974,12 @@ module Google
|
|||
class OperationMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
# Corresponds to the JSON property `createVersionMetadata`
|
||||
# @return [Google::Apis::AppengineV1beta::CreateVersionMetadataV1]
|
||||
attr_accessor :create_version_metadata
|
||||
|
||||
# Time that this operation completed.@OutputOnly
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -1989,6 +2024,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_version_metadata = args[:create_version_metadata] if args.key?(:create_version_metadata)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
|
@ -2819,9 +2855,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# The fields here refer to the name and configuration id of a "service" resource
|
||||
# in the Service Management API (https://cloud.google.com/service-management/
|
||||
# overview).
|
||||
# Corresponds to the JSON property `endpointsApiService`
|
||||
# @return [Google::Apis::AppengineV1beta::EndpointsApiService]
|
||||
attr_accessor :endpoints_api_service
|
||||
|
|
|
@ -106,6 +106,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -595,6 +601,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_build_id, as: 'cloudBuildId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -676,6 +689,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :config_id, as: 'configId'
|
||||
property :name, as: 'name'
|
||||
property :rollout_strategy, as: 'rolloutStrategy'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -944,6 +958,8 @@ module Google
|
|||
class OperationMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1beta::CreateVersionMetadataV1, decorator: Google::Apis::AppengineV1beta::CreateVersionMetadataV1::Representation
|
||||
|
||||
property :end_time, as: 'endTime'
|
||||
property :ephemeral_message, as: 'ephemeralMessage'
|
||||
property :insert_time, as: 'insertTime'
|
||||
|
|
|
@ -821,7 +821,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# Gets information about a location.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Resource name for the location.
|
||||
# @param [String] locations_id
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta4
|
||||
VERSION = 'V1beta4'
|
||||
REVISION = '20180301'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -340,6 +340,27 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Cloud Build ID if one was created as part of the version create. @
|
||||
# OutputOnly
|
||||
# Corresponds to the JSON property `cloudBuildId`
|
||||
# @return [String]
|
||||
attr_accessor :cloud_build_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cloud_build_id = args[:cloud_build_id] if args.key?(:cloud_build_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1alpha.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1Alpha
|
||||
|
@ -481,9 +502,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# .The fields here refer to the name and configuration id of a "service"
|
||||
# resource in the Service Management API (https://cloud.google.com/service-
|
||||
# management/overview).
|
||||
class EndpointsApiService
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -502,6 +524,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED,
|
||||
# config_id must be omitted.
|
||||
# Corresponds to the JSON property `rolloutStrategy`
|
||||
# @return [String]
|
||||
attr_accessor :rollout_strategy
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -510,6 +538,7 @@ module Google
|
|||
def update!(**args)
|
||||
@config_id = args[:config_id] if args.key?(:config_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@rollout_strategy = args[:rollout_strategy] if args.key?(:rollout_strategy)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1300,6 +1329,12 @@ module Google
|
|||
class OperationMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
# Corresponds to the JSON property `createVersionMetadata`
|
||||
# @return [Google::Apis::AppengineV1beta4::CreateVersionMetadataV1]
|
||||
attr_accessor :create_version_metadata
|
||||
|
||||
# Time that this operation completed.@OutputOnly
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -1344,6 +1379,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_version_metadata = args[:create_version_metadata] if args.key?(:create_version_metadata)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
|
@ -2036,9 +2072,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# .The fields here refer to the name and configuration id of a "service"
|
||||
# resource in the Service Management API (https://cloud.google.com/service-
|
||||
# management/overview).
|
||||
# Corresponds to the JSON property `endpointsApiService`
|
||||
# @return [Google::Apis::AppengineV1beta4::EndpointsApiService]
|
||||
attr_accessor :endpoints_api_service
|
||||
|
|
|
@ -64,6 +64,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -391,6 +397,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_build_id, as: 'cloudBuildId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -439,6 +452,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :config_id, as: 'configId'
|
||||
property :name, as: 'name'
|
||||
property :rollout_strategy, as: 'rolloutStrategy'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -640,6 +654,8 @@ module Google
|
|||
class OperationMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1beta4::CreateVersionMetadataV1, decorator: Google::Apis::AppengineV1beta4::CreateVersionMetadataV1::Representation
|
||||
|
||||
property :end_time, as: 'endTime'
|
||||
property :ephemeral_message, as: 'ephemeralMessage'
|
||||
property :insert_time, as: 'insertTime'
|
||||
|
|
|
@ -163,7 +163,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# Gets information about a location.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Resource name for the location.
|
||||
# @param [String] locations_id
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta5
|
||||
VERSION = 'V1beta5'
|
||||
REVISION = '20180301'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -340,6 +340,27 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Cloud Build ID if one was created as part of the version create. @
|
||||
# OutputOnly
|
||||
# Corresponds to the JSON property `cloudBuildId`
|
||||
# @return [String]
|
||||
attr_accessor :cloud_build_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cloud_build_id = args[:cloud_build_id] if args.key?(:cloud_build_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1alpha.CreateVersionRequest.
|
||||
class CreateVersionMetadataV1Alpha
|
||||
|
@ -481,9 +502,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# The fields here refer to the name and configuration id of a "service" resource
|
||||
# in the Service Management API (https://cloud.google.com/service-management/
|
||||
# overview).
|
||||
class EndpointsApiService
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -502,6 +524,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED,
|
||||
# config_id must be omitted.
|
||||
# Corresponds to the JSON property `rolloutStrategy`
|
||||
# @return [String]
|
||||
attr_accessor :rollout_strategy
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -510,6 +538,7 @@ module Google
|
|||
def update!(**args)
|
||||
@config_id = args[:config_id] if args.key?(:config_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@rollout_strategy = args[:rollout_strategy] if args.key?(:rollout_strategy)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1280,6 +1309,12 @@ module Google
|
|||
class OperationMetadataV1
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Metadata for the given google.longrunning.Operation during a google.appengine.
|
||||
# v1.CreateVersionRequest.
|
||||
# Corresponds to the JSON property `createVersionMetadata`
|
||||
# @return [Google::Apis::AppengineV1beta5::CreateVersionMetadataV1]
|
||||
attr_accessor :create_version_metadata
|
||||
|
||||
# Time that this operation completed.@OutputOnly
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -1324,6 +1359,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_version_metadata = args[:create_version_metadata] if args.key?(:create_version_metadata)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
|
@ -1992,9 +2028,10 @@ module Google
|
|||
|
||||
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
|
||||
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
|
||||
# via an NGINX proxy.The fields here refer to the name and configuration id of a
|
||||
# "service" resource in the Service Management API (https://cloud.google.com/
|
||||
# service-management/overview).
|
||||
# via an NGINX proxy. Only valid for App Engine Flexible environment deployments.
|
||||
# The fields here refer to the name and configuration id of a "service" resource
|
||||
# in the Service Management API (https://cloud.google.com/service-management/
|
||||
# overview).
|
||||
# Corresponds to the JSON property `endpointsApiService`
|
||||
# @return [Google::Apis::AppengineV1beta5::EndpointsApiService]
|
||||
attr_accessor :endpoints_api_service
|
||||
|
|
|
@ -64,6 +64,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -385,6 +391,13 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_build_id, as: 'cloudBuildId'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateVersionMetadataV1Alpha
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -433,6 +446,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :config_id, as: 'configId'
|
||||
property :name, as: 'name'
|
||||
property :rollout_strategy, as: 'rolloutStrategy'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -625,6 +639,8 @@ module Google
|
|||
class OperationMetadataV1
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_version_metadata, as: 'createVersionMetadata', class: Google::Apis::AppengineV1beta5::CreateVersionMetadataV1, decorator: Google::Apis::AppengineV1beta5::CreateVersionMetadataV1::Representation
|
||||
|
||||
property :end_time, as: 'endTime'
|
||||
property :ephemeral_message, as: 'ephemeralMessage'
|
||||
property :insert_time, as: 'insertTime'
|
||||
|
|
|
@ -164,7 +164,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# Gets information about a location.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Resource name for the location.
|
||||
# @param [String] locations_id
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/iot
|
||||
module CloudiotV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180227'
|
||||
REVISION = '20180314'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -542,7 +542,7 @@ module Google
|
|||
# Only updates the `device` fields indicated by this mask.
|
||||
# The field mask must not be empty, and it must not contain fields that
|
||||
# are immutable or only set by the server.
|
||||
# Mutable top-level fields: `credentials`, `enabled_state`, and `metadata`
|
||||
# Mutable top-level fields: `credentials`, `blocked`, and `metadata`
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/kms/
|
||||
module CloudkmsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180303'
|
||||
REVISION = '20180316'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -48,7 +48,7 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @param [String] fields
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/clouduseraccounts_alpha/service.rb'
|
||||
require 'google/apis/clouduseraccounts_alpha/classes.rb'
|
||||
require 'google/apis/clouduseraccounts_alpha/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud User Accounts API
|
||||
#
|
||||
# Creates and manages users and groups for accessing Google Compute Engine
|
||||
# virtual machines.
|
||||
#
|
||||
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||
module ClouduseraccountsAlpha
|
||||
VERSION = 'Alpha'
|
||||
REVISION = '20160316'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
|
||||
# Manage your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
||||
|
||||
# View your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -1,494 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsAlpha
|
||||
|
||||
class AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizedKeysView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Condition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Group
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogConfigCounterOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Rule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class User
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthorizedKeysView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys'
|
||||
property :sudoer, as: 'sudoer'
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class Condition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :iam, as: 'iam'
|
||||
property :op, as: 'op'
|
||||
property :svc, as: 'svc'
|
||||
property :sys, as: 'sys'
|
||||
property :value, as: 'value'
|
||||
collection :values, as: 'values'
|
||||
end
|
||||
end
|
||||
|
||||
class Group
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :members, as: 'members'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsAlpha::Group, decorator: Google::Apis::ClouduseraccountsAlpha::Group::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsAlpha::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsAlpha::LinuxGroupView::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsAlpha::LinuxUserView, decorator: Google::Apis::ClouduseraccountsAlpha::LinuxUserView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsAlpha::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsAlpha::AuthorizedKeysView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsAlpha::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsAlpha::LinuxAccountViews::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gid, as: 'gid'
|
||||
property :group_name, as: 'groupName'
|
||||
collection :members, as: 'members'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gecos, as: 'gecos'
|
||||
property :gid, as: 'gid'
|
||||
property :home_directory, as: 'homeDirectory'
|
||||
property :shell, as: 'shell'
|
||||
property :uid, as: 'uid'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :counter, as: 'counter', class: Google::Apis::ClouduseraccountsAlpha::LogConfigCounterOptions, decorator: Google::Apis::ClouduseraccountsAlpha::LogConfigCounterOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LogConfigCounterOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :field, as: 'field'
|
||||
property :metric, as: 'metric'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_operation_id, as: 'clientOperationId'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :end_time, as: 'endTime'
|
||||
property :error, as: 'error', class: Google::Apis::ClouduseraccountsAlpha::Operation::Error, decorator: Google::Apis::ClouduseraccountsAlpha::Operation::Error::Representation
|
||||
|
||||
property :http_error_message, as: 'httpErrorMessage'
|
||||
property :http_error_status_code, as: 'httpErrorStatusCode'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :insert_time, as: 'insertTime'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :progress, as: 'progress'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :start_time, as: 'startTime'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :target_id, :numeric_string => true, as: 'targetId'
|
||||
property :target_link, as: 'targetLink'
|
||||
property :user, as: 'user'
|
||||
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsAlpha::Operation::Warning, decorator: Google::Apis::ClouduseraccountsAlpha::Operation::Warning::Representation
|
||||
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsAlpha::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsAlpha::Operation::Error::Error::Representation
|
||||
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :location, as: 'location'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsAlpha::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsAlpha::Operation::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class OperationList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsAlpha::Operation, decorator: Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ClouduseraccountsAlpha::AuditConfig, decorator: Google::Apis::ClouduseraccountsAlpha::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::ClouduseraccountsAlpha::Binding, decorator: Google::Apis::ClouduseraccountsAlpha::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::ClouduseraccountsAlpha::Rule, decorator: Google::Apis::ClouduseraccountsAlpha::Rule::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||
property :fingerprint, as: 'fingerprint'
|
||||
property :key, as: 'key'
|
||||
end
|
||||
end
|
||||
|
||||
class Rule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
collection :conditions, as: 'conditions', class: Google::Apis::ClouduseraccountsAlpha::Condition, decorator: Google::Apis::ClouduseraccountsAlpha::Condition::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
collection :ins, as: 'ins'
|
||||
collection :log_configs, as: 'logConfigs', class: Google::Apis::ClouduseraccountsAlpha::LogConfig, decorator: Google::Apis::ClouduseraccountsAlpha::LogConfig::Representation
|
||||
|
||||
collection :not_ins, as: 'notIns'
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class User
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
collection :groups, as: 'groups'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner'
|
||||
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsAlpha::PublicKey, decorator: Google::Apis::ClouduseraccountsAlpha::PublicKey::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class UserList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsAlpha::User, decorator: Google::Apis::ClouduseraccountsAlpha::User::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -1,44 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/clouduseraccounts_beta/service.rb'
|
||||
require 'google/apis/clouduseraccounts_beta/classes.rb'
|
||||
require 'google/apis/clouduseraccounts_beta/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud User Accounts API
|
||||
#
|
||||
# Creates and manages users and groups for accessing Google Compute Engine
|
||||
# virtual machines.
|
||||
#
|
||||
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||
module ClouduseraccountsBeta
|
||||
VERSION = 'Beta'
|
||||
REVISION = '20160316'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
|
||||
# Manage your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
||||
|
||||
# View your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,845 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsBeta
|
||||
|
||||
# A list of authorized public keys for a user account.
|
||||
class AuthorizedKeysView
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The list of authorized public keys in SSH format.
|
||||
# Corresponds to the JSON property `keys`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :keys
|
||||
|
||||
# [Output Only] Whether the user has the ability to elevate on the instance that
|
||||
# requested the authorized keys.
|
||||
# Corresponds to the JSON property `sudoer`
|
||||
# @return [Boolean]
|
||||
attr_accessor :sudoer
|
||||
alias_method :sudoer?, :sudoer
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@keys = args[:keys] if args.key?(:keys)
|
||||
@sudoer = args[:sudoer] if args.key?(:sudoer)
|
||||
end
|
||||
end
|
||||
|
||||
# A Group resource.
|
||||
class Group
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional textual description of the resource; provided by the client when
|
||||
# the resource is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always clouduseraccounts#group for groups.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A list of URLs to User resources who belong to the group. Users
|
||||
# may only be members of groups in the same project.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :members
|
||||
|
||||
# Name of the resource; provided by the client when the resource is created.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# [Output Only] Server defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GroupList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of Group resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::Group>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always clouduseraccounts#groupList for lists
|
||||
# of groups.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A token used to continue a truncated list request.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GroupsAddMemberRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Fully-qualified URLs of the User resources to add.
|
||||
# Corresponds to the JSON property `users`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :users
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@users = args[:users] if args.key?(:users)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GroupsRemoveMemberRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Fully-qualified URLs of the User resources to remove.
|
||||
# Corresponds to the JSON property `users`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :users
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@users = args[:users] if args.key?(:users)
|
||||
end
|
||||
end
|
||||
|
||||
# A list of all Linux accounts for this project. This API is only used by
|
||||
# Compute Engine virtual machines to get information about user accounts for a
|
||||
# project or instance. Linux resources are read-only views into users and groups
|
||||
# managed by the Compute Engine Accounts API.
|
||||
class LinuxAccountViews
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A list of all groups within a project.
|
||||
# Corresponds to the JSON property `groupViews`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxGroupView>]
|
||||
attr_accessor :group_views
|
||||
|
||||
# [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews
|
||||
# for Linux resources.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A list of all users within a project.
|
||||
# Corresponds to the JSON property `userViews`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxUserView>]
|
||||
attr_accessor :user_views
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group_views = args[:group_views] if args.key?(:group_views)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@user_views = args[:user_views] if args.key?(:user_views)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of authorized public keys for a user account.
|
||||
# Corresponds to the JSON property `resource`
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView]
|
||||
attr_accessor :resource
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource = args[:resource] if args.key?(:resource)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of all Linux accounts for this project. This API is only used by
|
||||
# Compute Engine virtual machines to get information about user accounts for a
|
||||
# project or instance. Linux resources are read-only views into users and groups
|
||||
# managed by the Compute Engine Accounts API.
|
||||
# Corresponds to the JSON property `resource`
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::LinuxAccountViews]
|
||||
attr_accessor :resource
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource = args[:resource] if args.key?(:resource)
|
||||
end
|
||||
end
|
||||
|
||||
# A detailed view of a Linux group.
|
||||
class LinuxGroupView
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The Group ID.
|
||||
# Corresponds to the JSON property `gid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :gid
|
||||
|
||||
# [Output Only] Group name.
|
||||
# Corresponds to the JSON property `groupName`
|
||||
# @return [String]
|
||||
attr_accessor :group_name
|
||||
|
||||
# [Output Only] List of user accounts that belong to the group.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :members
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@gid = args[:gid] if args.key?(:gid)
|
||||
@group_name = args[:group_name] if args.key?(:group_name)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
end
|
||||
end
|
||||
|
||||
# A detailed view of a Linux user account.
|
||||
class LinuxUserView
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The GECOS (user information) entry for this account.
|
||||
# Corresponds to the JSON property `gecos`
|
||||
# @return [String]
|
||||
attr_accessor :gecos
|
||||
|
||||
# [Output Only] User's default group ID.
|
||||
# Corresponds to the JSON property `gid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :gid
|
||||
|
||||
# [Output Only] The path to the home directory for this account.
|
||||
# Corresponds to the JSON property `homeDirectory`
|
||||
# @return [String]
|
||||
attr_accessor :home_directory
|
||||
|
||||
# [Output Only] The path to the login shell for this account.
|
||||
# Corresponds to the JSON property `shell`
|
||||
# @return [String]
|
||||
attr_accessor :shell
|
||||
|
||||
# [Output Only] User ID.
|
||||
# Corresponds to the JSON property `uid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :uid
|
||||
|
||||
# [Output Only] The username of the account.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@gecos = args[:gecos] if args.key?(:gecos)
|
||||
@gid = args[:gid] if args.key?(:gid)
|
||||
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
||||
@shell = args[:shell] if args.key?(:shell)
|
||||
@uid = args[:uid] if args.key?(:uid)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
end
|
||||
end
|
||||
|
||||
# An Operation resource, used to manage asynchronous API requests.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Reserved for future use.
|
||||
# Corresponds to the JSON property `clientOperationId`
|
||||
# @return [String]
|
||||
attr_accessor :client_operation_id
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# [Output Only] A textual description of the operation, which is set when the
|
||||
# operation is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] The time that this operation was completed. This value is in
|
||||
# RFC3339 text format.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# [Output Only] If errors are generated during processing of the operation, this
|
||||
# field will be populated.
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation::Error]
|
||||
attr_accessor :error
|
||||
|
||||
# [Output Only] If the operation fails, this field contains the HTTP error
|
||||
# message that was returned, such as NOT FOUND.
|
||||
# Corresponds to the JSON property `httpErrorMessage`
|
||||
# @return [String]
|
||||
attr_accessor :http_error_message
|
||||
|
||||
# [Output Only] If the operation fails, this field contains the HTTP error
|
||||
# status code that was returned. For example, a 404 means the resource was not
|
||||
# found.
|
||||
# Corresponds to the JSON property `httpErrorStatusCode`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :http_error_status_code
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] The time that this operation was requested. This value is in
|
||||
# RFC3339 text format.
|
||||
# Corresponds to the JSON property `insertTime`
|
||||
# @return [String]
|
||||
attr_accessor :insert_time
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#operation for Operation
|
||||
# resources.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] Name of the resource.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# [Output Only] The type of operation, such as insert, update, or delete, and so
|
||||
# on.
|
||||
# Corresponds to the JSON property `operationType`
|
||||
# @return [String]
|
||||
attr_accessor :operation_type
|
||||
|
||||
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
|
||||
# is no requirement that this be linear or support any granularity of operations.
|
||||
# This should not be used to guess when the operation will be complete. This
|
||||
# number should monotonically increase as the operation progresses.
|
||||
# Corresponds to the JSON property `progress`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :progress
|
||||
|
||||
# [Output Only] The URL of the region where the operation resides. Only
|
||||
# available when performing regional operations.
|
||||
# Corresponds to the JSON property `region`
|
||||
# @return [String]
|
||||
attr_accessor :region
|
||||
|
||||
# [Output Only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# [Output Only] The time that this operation was started by the server. This
|
||||
# value is in RFC3339 text format.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# [Output Only] The status of the operation, which can be one of the following:
|
||||
# PENDING, RUNNING, or DONE.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# [Output Only] An optional textual description of the current status of the
|
||||
# operation.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# [Output Only] The unique target ID, which identifies a specific incarnation of
|
||||
# the target resource.
|
||||
# Corresponds to the JSON property `targetId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :target_id
|
||||
|
||||
# [Output Only] The URL of the resource that the operation modifies.
|
||||
# Corresponds to the JSON property `targetLink`
|
||||
# @return [String]
|
||||
attr_accessor :target_link
|
||||
|
||||
# [Output Only] User who requested the operation, for example: user@example.com.
|
||||
# Corresponds to the JSON property `user`
|
||||
# @return [String]
|
||||
attr_accessor :user
|
||||
|
||||
# [Output Only] If warning messages are generated during processing of the
|
||||
# operation, this field will be populated.
|
||||
# Corresponds to the JSON property `warnings`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning>]
|
||||
attr_accessor :warnings
|
||||
|
||||
# [Output Only] The URL of the zone where the operation resides. Only available
|
||||
# when performing per-zone operations.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
|
||||
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
||||
@progress = args[:progress] if args.key?(:progress)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@target_id = args[:target_id] if args.key?(:target_id)
|
||||
@target_link = args[:target_link] if args.key?(:target_link)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
@warnings = args[:warnings] if args.key?(:warnings)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
|
||||
# [Output Only] If errors are generated during processing of the operation, this
|
||||
# field will be populated.
|
||||
class Error
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The array of errors encountered while processing this operation.
|
||||
# Corresponds to the JSON property `errors`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Error::Error>]
|
||||
attr_accessor :errors
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@errors = args[:errors] if args.key?(:errors)
|
||||
end
|
||||
|
||||
#
|
||||
class Error
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The error type identifier for this error.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# [Output Only] Indicates the field in the request that caused the error. This
|
||||
# property is optional.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
# [Output Only] An optional, human-readable error message.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Warning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A warning code, if applicable. For example, Compute Engine
|
||||
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# [Output Only] Metadata about this warning in key: value format. For example:
|
||||
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
||||
# Corresponds to the JSON property `data`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum>]
|
||||
attr_accessor :data
|
||||
|
||||
# [Output Only] A human-readable description of the warning code.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
|
||||
#
|
||||
class Datum
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A key that provides more detail on the warning being returned.
|
||||
# For example, for warnings where there are no results in a list request for a
|
||||
# particular zone, this key might be scope and the key value might be the zone
|
||||
# name. Other examples might be a key indicating a deprecated resource and a
|
||||
# suggested replacement, or a warning about invalid network settings (for
|
||||
# example, if an instance attempts to perform IP forwarding but is not enabled
|
||||
# for IP forwarding).
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# [Output Only] A warning data value corresponding to the key.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a list of Operation resources.
|
||||
class OperationList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of Operation resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always compute#operations for Operations
|
||||
# resource.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] This token allows you to get the next page of results for list
|
||||
# requests. If the number of results is larger than maxResults, use the
|
||||
# nextPageToken as a value for the query parameter pageToken in the next list
|
||||
# request. Subsequent list requests will have their own nextPageToken to
|
||||
# continue paging through the results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server-defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
# A public key for authenticating to guests.
|
||||
class PublicKey
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional textual description of the resource; provided by the client when
|
||||
# the resource is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Optional expiration timestamp. If provided, the timestamp must be in RFC3339
|
||||
# text format. If not provided, the public key never expires.
|
||||
# Corresponds to the JSON property `expirationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :expiration_timestamp
|
||||
|
||||
# [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
|
||||
# digest of the public key.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
# Public key text in SSH format, defined by RFC4253 section 6.6.
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp)
|
||||
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
end
|
||||
end
|
||||
|
||||
# A User resource.
|
||||
class User
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional textual description of the resource; provided by the client when
|
||||
# the resource is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] A list of URLs to Group resources who contain the user. Users
|
||||
# are only members of groups in the same project.
|
||||
# Corresponds to the JSON property `groups`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :groups
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always clouduseraccounts#user for users.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Name of the resource; provided by the client when the resource is created.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Email address of account's owner. This account will be validated to make sure
|
||||
# it exists. The email can belong to any domain, but it must be tied to a Google
|
||||
# account.
|
||||
# Corresponds to the JSON property `owner`
|
||||
# @return [String]
|
||||
attr_accessor :owner
|
||||
|
||||
# [Output Only] Public keys that this user may use to login.
|
||||
# Corresponds to the JSON property `publicKeys`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::PublicKey>]
|
||||
attr_accessor :public_keys
|
||||
|
||||
# [Output Only] Server defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@groups = args[:groups] if args.key?(:groups)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@public_keys = args[:public_keys] if args.key?(:public_keys)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class UserList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of User resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsBeta::User>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always clouduseraccounts#userList for lists of
|
||||
# users.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A token used to continue a truncated list request.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,352 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsBeta
|
||||
|
||||
class AuthorizedKeysView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Group
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class User
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizedKeysView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys'
|
||||
property :sudoer, as: 'sudoer'
|
||||
end
|
||||
end
|
||||
|
||||
class Group
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :members, as: 'members'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::Group, decorator: Google::Apis::ClouduseraccountsBeta::Group::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsBeta::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxGroupView::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsBeta::LinuxUserView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxUserView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsBeta::LinuxAccountViews::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gid, as: 'gid'
|
||||
property :group_name, as: 'groupName'
|
||||
collection :members, as: 'members'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gecos, as: 'gecos'
|
||||
property :gid, as: 'gid'
|
||||
property :home_directory, as: 'homeDirectory'
|
||||
property :shell, as: 'shell'
|
||||
property :uid, as: 'uid'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_operation_id, as: 'clientOperationId'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :end_time, as: 'endTime'
|
||||
property :error, as: 'error', class: Google::Apis::ClouduseraccountsBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::Representation
|
||||
|
||||
property :http_error_message, as: 'httpErrorMessage'
|
||||
property :http_error_status_code, as: 'httpErrorStatusCode'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :insert_time, as: 'insertTime'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :progress, as: 'progress'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :start_time, as: 'startTime'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :target_id, :numeric_string => true, as: 'targetId'
|
||||
property :target_link, as: 'targetLink'
|
||||
property :user, as: 'user'
|
||||
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsBeta::Operation::Warning, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Representation
|
||||
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsBeta::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Error::Error::Representation
|
||||
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :location, as: 'location'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class OperationList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::Operation, decorator: Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||
property :fingerprint, as: 'fingerprint'
|
||||
property :key, as: 'key'
|
||||
end
|
||||
end
|
||||
|
||||
class User
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
collection :groups, as: 'groups'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner'
|
||||
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsBeta::PublicKey, decorator: Google::Apis::ClouduseraccountsBeta::PublicKey::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class UserList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsBeta::User, decorator: Google::Apis::ClouduseraccountsBeta::User::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,908 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsBeta
|
||||
# Cloud User Accounts API
|
||||
#
|
||||
# Creates and manages users and groups for accessing Google Compute Engine
|
||||
# virtual machines.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/clouduseraccounts_beta'
|
||||
#
|
||||
# Clouduseraccounts = Google::Apis::ClouduseraccountsBeta # Alias the module
|
||||
# service = Clouduseraccounts::CloudUserAccountsService.new
|
||||
#
|
||||
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||
class CloudUserAccountsService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# 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.
|
||||
# Overrides userIp if both are provided.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'clouduseraccounts/beta/projects/')
|
||||
@batch_path = 'batch/clouduseraccounts/beta'
|
||||
end
|
||||
|
||||
# Deletes the specified operation resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] operation
|
||||
# Name of the Operations resource to delete.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/operations/{operation}', options)
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['operation'] = operation unless operation.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the specified operation resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] operation
|
||||
# Name of the Operations resource to return.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['operation'] = operation unless operation.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the list of operation resources contained within the specified
|
||||
# project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::OperationList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::OperationList]
|
||||
#
|
||||
# @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_global_accounts_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/operations', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::OperationList::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::OperationList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Adds users to the specified group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the group for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsBeta::GroupsAddMemberRequest] groups_add_member_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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 add_group_member(project, group_name, groups_add_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/groups/{groupName}/addMember', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsBeta::GroupsAddMemberRequest::Representation
|
||||
command.request_object = groups_add_member_request_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified Group resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the Group resource to delete.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/groups/{groupName}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified Group resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the Group resource to return.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Group] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Group]
|
||||
#
|
||||
# @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_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/groups/{groupName}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Group::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Group
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Group resource in the specified project using the data included in
|
||||
# the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsBeta::Group] group_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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 insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/groups', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsBeta::Group::Representation
|
||||
command.request_object = group_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the list of groups contained within the specified project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::GroupList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::GroupList]
|
||||
#
|
||||
# @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_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/groups', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::GroupList::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::GroupList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Removes users from the specified group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the group for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsBeta::GroupsRemoveMemberRequest] groups_remove_member_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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 remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsBeta::GroupsRemoveMemberRequest::Representation
|
||||
command.request_object = groups_remove_member_request_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a list of authorized public keys for a specific user account.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# Name of the zone for this request.
|
||||
# @param [String] user
|
||||
# The user account for which you want to get a list of authorized public keys.
|
||||
# @param [String] instance
|
||||
# The fully-qualified URL of the virtual machine requesting the view.
|
||||
# @param [Boolean] login
|
||||
# Whether the view was requested as part of a user-initiated login.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse]
|
||||
#
|
||||
# @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_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['instance'] = instance unless instance.nil?
|
||||
command.query['login'] = login unless login.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of user accounts for an instance within a specific project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# Name of the zone for this request.
|
||||
# @param [String] instance
|
||||
# The fully-qualified URL of the virtual machine requesting the views.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse]
|
||||
#
|
||||
# @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_linux_linux_account_views(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['instance'] = instance unless instance.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Adds a public key to the specified User resource with the data included in the
|
||||
# request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsBeta::PublicKey] public_key_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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 add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsBeta::PublicKey::Representation
|
||||
command.request_object = public_key_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified User resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user resource to delete.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/users/{user}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified User resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user resource to return.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::User] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::User]
|
||||
#
|
||||
# @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_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/users/{user}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::User::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::User
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a User resource in the specified project using the data included in
|
||||
# the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsBeta::User] user_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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 insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/users', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsBeta::User::Representation
|
||||
command.request_object = user_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of users contained within the specified project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::UserList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::UserList]
|
||||
#
|
||||
# @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_users(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/users', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::UserList::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::UserList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Removes the specified public key from the user.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user for this request.
|
||||
# @param [String] fingerprint
|
||||
# The fingerprint of the public key to delete. Public keys are identified by
|
||||
# their fingerprint, which is defined by RFC4716 to be the MD5 digest of the
|
||||
# public key.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsBeta::Operation]
|
||||
#
|
||||
# @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 remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,44 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/clouduseraccounts_vm_alpha/service.rb'
|
||||
require 'google/apis/clouduseraccounts_vm_alpha/classes.rb'
|
||||
require 'google/apis/clouduseraccounts_vm_alpha/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud User Accounts API
|
||||
#
|
||||
# Creates and manages users and groups for accessing Google Compute Engine
|
||||
# virtual machines.
|
||||
#
|
||||
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||
module ClouduseraccountsVmAlpha
|
||||
VERSION = 'VmAlpha'
|
||||
REVISION = '20160316'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
|
||||
# Manage your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
||||
|
||||
# View your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -1,494 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsVmAlpha
|
||||
|
||||
class AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizedKeysView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Condition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Group
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LogConfigCounterOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Rule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class User
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
class AuthorizedKeysView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys'
|
||||
property :sudoer, as: 'sudoer'
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class Condition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :iam, as: 'iam'
|
||||
property :op, as: 'op'
|
||||
property :svc, as: 'svc'
|
||||
property :sys, as: 'sys'
|
||||
property :value, as: 'value'
|
||||
collection :values, as: 'values'
|
||||
end
|
||||
end
|
||||
|
||||
class Group
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :members, as: 'members'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmAlpha::Group, decorator: Google::Apis::ClouduseraccountsVmAlpha::Group::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsVmAlpha::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsVmAlpha::LinuxGroupView::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsVmAlpha::LinuxUserView, decorator: Google::Apis::ClouduseraccountsVmAlpha::LinuxUserView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmAlpha::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsVmAlpha::AuthorizedKeysView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmAlpha::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsVmAlpha::LinuxAccountViews::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gid, as: 'gid'
|
||||
property :group_name, as: 'groupName'
|
||||
collection :members, as: 'members'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gecos, as: 'gecos'
|
||||
property :gid, as: 'gid'
|
||||
property :home_directory, as: 'homeDirectory'
|
||||
property :shell, as: 'shell'
|
||||
property :uid, as: 'uid'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :counter, as: 'counter', class: Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions, decorator: Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LogConfigCounterOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :field, as: 'field'
|
||||
property :metric, as: 'metric'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_operation_id, as: 'clientOperationId'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :end_time, as: 'endTime'
|
||||
property :error, as: 'error', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error::Representation
|
||||
|
||||
property :http_error_message, as: 'httpErrorMessage'
|
||||
property :http_error_status_code, as: 'httpErrorStatusCode'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :insert_time, as: 'insertTime'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :progress, as: 'progress'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :start_time, as: 'startTime'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :target_id, :numeric_string => true, as: 'targetId'
|
||||
property :target_link, as: 'targetLink'
|
||||
property :user, as: 'user'
|
||||
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning::Representation
|
||||
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Error::Error::Representation
|
||||
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :location, as: 'location'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class OperationList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmAlpha::Operation, decorator: Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ClouduseraccountsVmAlpha::AuditConfig, decorator: Google::Apis::ClouduseraccountsVmAlpha::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::ClouduseraccountsVmAlpha::Binding, decorator: Google::Apis::ClouduseraccountsVmAlpha::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::ClouduseraccountsVmAlpha::Rule, decorator: Google::Apis::ClouduseraccountsVmAlpha::Rule::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||
property :fingerprint, as: 'fingerprint'
|
||||
property :key, as: 'key'
|
||||
end
|
||||
end
|
||||
|
||||
class Rule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
collection :conditions, as: 'conditions', class: Google::Apis::ClouduseraccountsVmAlpha::Condition, decorator: Google::Apis::ClouduseraccountsVmAlpha::Condition::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
collection :ins, as: 'ins'
|
||||
collection :log_configs, as: 'logConfigs', class: Google::Apis::ClouduseraccountsVmAlpha::LogConfig, decorator: Google::Apis::ClouduseraccountsVmAlpha::LogConfig::Representation
|
||||
|
||||
collection :not_ins, as: 'notIns'
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class User
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
collection :groups, as: 'groups'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner'
|
||||
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsVmAlpha::PublicKey, decorator: Google::Apis::ClouduseraccountsVmAlpha::PublicKey::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class UserList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmAlpha::User, decorator: Google::Apis::ClouduseraccountsVmAlpha::User::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -1,44 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/clouduseraccounts_vm_beta/service.rb'
|
||||
require 'google/apis/clouduseraccounts_vm_beta/classes.rb'
|
||||
require 'google/apis/clouduseraccounts_vm_beta/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud User Accounts API
|
||||
#
|
||||
# Creates and manages users and groups for accessing Google Compute Engine
|
||||
# virtual machines.
|
||||
#
|
||||
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||
module ClouduseraccountsVmBeta
|
||||
VERSION = 'VmBeta'
|
||||
REVISION = '20160316'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
|
||||
# Manage your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
||||
|
||||
# View your Google Cloud User Accounts
|
||||
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,845 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsVmBeta
|
||||
|
||||
# A list of authorized public keys for a user account.
|
||||
class AuthorizedKeysView
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The list of authorized public keys in SSH format.
|
||||
# Corresponds to the JSON property `keys`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :keys
|
||||
|
||||
# [Output Only] Whether the user has the ability to elevate on the instance that
|
||||
# requested the authorized keys.
|
||||
# Corresponds to the JSON property `sudoer`
|
||||
# @return [Boolean]
|
||||
attr_accessor :sudoer
|
||||
alias_method :sudoer?, :sudoer
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@keys = args[:keys] if args.key?(:keys)
|
||||
@sudoer = args[:sudoer] if args.key?(:sudoer)
|
||||
end
|
||||
end
|
||||
|
||||
# A Group resource.
|
||||
class Group
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional textual description of the resource; provided by the client when
|
||||
# the resource is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always clouduseraccounts#group for groups.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A list of URLs to User resources who belong to the group. Users
|
||||
# may only be members of groups in the same project.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :members
|
||||
|
||||
# Name of the resource; provided by the client when the resource is created.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# [Output Only] Server defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GroupList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of Group resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::Group>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always clouduseraccounts#groupList for lists
|
||||
# of groups.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A token used to continue a truncated list request.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GroupsAddMemberRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Fully-qualified URLs of the User resources to add.
|
||||
# Corresponds to the JSON property `users`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :users
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@users = args[:users] if args.key?(:users)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GroupsRemoveMemberRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Fully-qualified URLs of the User resources to remove.
|
||||
# Corresponds to the JSON property `users`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :users
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@users = args[:users] if args.key?(:users)
|
||||
end
|
||||
end
|
||||
|
||||
# A list of all Linux accounts for this project. This API is only used by
|
||||
# Compute Engine virtual machines to get information about user accounts for a
|
||||
# project or instance. Linux resources are read-only views into users and groups
|
||||
# managed by the Compute Engine Accounts API.
|
||||
class LinuxAccountViews
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A list of all groups within a project.
|
||||
# Corresponds to the JSON property `groupViews`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::LinuxGroupView>]
|
||||
attr_accessor :group_views
|
||||
|
||||
# [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews
|
||||
# for Linux resources.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A list of all users within a project.
|
||||
# Corresponds to the JSON property `userViews`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::LinuxUserView>]
|
||||
attr_accessor :user_views
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group_views = args[:group_views] if args.key?(:group_views)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@user_views = args[:user_views] if args.key?(:user_views)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of authorized public keys for a user account.
|
||||
# Corresponds to the JSON property `resource`
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::AuthorizedKeysView]
|
||||
attr_accessor :resource
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource = args[:resource] if args.key?(:resource)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of all Linux accounts for this project. This API is only used by
|
||||
# Compute Engine virtual machines to get information about user accounts for a
|
||||
# project or instance. Linux resources are read-only views into users and groups
|
||||
# managed by the Compute Engine Accounts API.
|
||||
# Corresponds to the JSON property `resource`
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::LinuxAccountViews]
|
||||
attr_accessor :resource
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource = args[:resource] if args.key?(:resource)
|
||||
end
|
||||
end
|
||||
|
||||
# A detailed view of a Linux group.
|
||||
class LinuxGroupView
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The Group ID.
|
||||
# Corresponds to the JSON property `gid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :gid
|
||||
|
||||
# [Output Only] Group name.
|
||||
# Corresponds to the JSON property `groupName`
|
||||
# @return [String]
|
||||
attr_accessor :group_name
|
||||
|
||||
# [Output Only] List of user accounts that belong to the group.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :members
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@gid = args[:gid] if args.key?(:gid)
|
||||
@group_name = args[:group_name] if args.key?(:group_name)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
end
|
||||
end
|
||||
|
||||
# A detailed view of a Linux user account.
|
||||
class LinuxUserView
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The GECOS (user information) entry for this account.
|
||||
# Corresponds to the JSON property `gecos`
|
||||
# @return [String]
|
||||
attr_accessor :gecos
|
||||
|
||||
# [Output Only] User's default group ID.
|
||||
# Corresponds to the JSON property `gid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :gid
|
||||
|
||||
# [Output Only] The path to the home directory for this account.
|
||||
# Corresponds to the JSON property `homeDirectory`
|
||||
# @return [String]
|
||||
attr_accessor :home_directory
|
||||
|
||||
# [Output Only] The path to the login shell for this account.
|
||||
# Corresponds to the JSON property `shell`
|
||||
# @return [String]
|
||||
attr_accessor :shell
|
||||
|
||||
# [Output Only] User ID.
|
||||
# Corresponds to the JSON property `uid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :uid
|
||||
|
||||
# [Output Only] The username of the account.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@gecos = args[:gecos] if args.key?(:gecos)
|
||||
@gid = args[:gid] if args.key?(:gid)
|
||||
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
||||
@shell = args[:shell] if args.key?(:shell)
|
||||
@uid = args[:uid] if args.key?(:uid)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
end
|
||||
end
|
||||
|
||||
# An Operation resource, used to manage asynchronous API requests.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Reserved for future use.
|
||||
# Corresponds to the JSON property `clientOperationId`
|
||||
# @return [String]
|
||||
attr_accessor :client_operation_id
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# [Output Only] A textual description of the operation, which is set when the
|
||||
# operation is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] The time that this operation was completed. This value is in
|
||||
# RFC3339 text format.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# [Output Only] If errors are generated during processing of the operation, this
|
||||
# field will be populated.
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation::Error]
|
||||
attr_accessor :error
|
||||
|
||||
# [Output Only] If the operation fails, this field contains the HTTP error
|
||||
# message that was returned, such as NOT FOUND.
|
||||
# Corresponds to the JSON property `httpErrorMessage`
|
||||
# @return [String]
|
||||
attr_accessor :http_error_message
|
||||
|
||||
# [Output Only] If the operation fails, this field contains the HTTP error
|
||||
# status code that was returned. For example, a 404 means the resource was not
|
||||
# found.
|
||||
# Corresponds to the JSON property `httpErrorStatusCode`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :http_error_status_code
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] The time that this operation was requested. This value is in
|
||||
# RFC3339 text format.
|
||||
# Corresponds to the JSON property `insertTime`
|
||||
# @return [String]
|
||||
attr_accessor :insert_time
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#operation for Operation
|
||||
# resources.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] Name of the resource.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# [Output Only] The type of operation, such as insert, update, or delete, and so
|
||||
# on.
|
||||
# Corresponds to the JSON property `operationType`
|
||||
# @return [String]
|
||||
attr_accessor :operation_type
|
||||
|
||||
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
|
||||
# is no requirement that this be linear or support any granularity of operations.
|
||||
# This should not be used to guess when the operation will be complete. This
|
||||
# number should monotonically increase as the operation progresses.
|
||||
# Corresponds to the JSON property `progress`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :progress
|
||||
|
||||
# [Output Only] The URL of the region where the operation resides. Only
|
||||
# available when performing regional operations.
|
||||
# Corresponds to the JSON property `region`
|
||||
# @return [String]
|
||||
attr_accessor :region
|
||||
|
||||
# [Output Only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# [Output Only] The time that this operation was started by the server. This
|
||||
# value is in RFC3339 text format.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# [Output Only] The status of the operation, which can be one of the following:
|
||||
# PENDING, RUNNING, or DONE.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# [Output Only] An optional textual description of the current status of the
|
||||
# operation.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# [Output Only] The unique target ID, which identifies a specific incarnation of
|
||||
# the target resource.
|
||||
# Corresponds to the JSON property `targetId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :target_id
|
||||
|
||||
# [Output Only] The URL of the resource that the operation modifies.
|
||||
# Corresponds to the JSON property `targetLink`
|
||||
# @return [String]
|
||||
attr_accessor :target_link
|
||||
|
||||
# [Output Only] User who requested the operation, for example: user@example.com.
|
||||
# Corresponds to the JSON property `user`
|
||||
# @return [String]
|
||||
attr_accessor :user
|
||||
|
||||
# [Output Only] If warning messages are generated during processing of the
|
||||
# operation, this field will be populated.
|
||||
# Corresponds to the JSON property `warnings`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::Operation::Warning>]
|
||||
attr_accessor :warnings
|
||||
|
||||
# [Output Only] The URL of the zone where the operation resides. Only available
|
||||
# when performing per-zone operations.
|
||||
# Corresponds to the JSON property `zone`
|
||||
# @return [String]
|
||||
attr_accessor :zone
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
|
||||
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
||||
@progress = args[:progress] if args.key?(:progress)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@target_id = args[:target_id] if args.key?(:target_id)
|
||||
@target_link = args[:target_link] if args.key?(:target_link)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
@warnings = args[:warnings] if args.key?(:warnings)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
|
||||
# [Output Only] If errors are generated during processing of the operation, this
|
||||
# field will be populated.
|
||||
class Error
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The array of errors encountered while processing this operation.
|
||||
# Corresponds to the JSON property `errors`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Error>]
|
||||
attr_accessor :errors
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@errors = args[:errors] if args.key?(:errors)
|
||||
end
|
||||
|
||||
#
|
||||
class Error
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The error type identifier for this error.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# [Output Only] Indicates the field in the request that caused the error. This
|
||||
# property is optional.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
# [Output Only] An optional, human-readable error message.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Warning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A warning code, if applicable. For example, Compute Engine
|
||||
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# [Output Only] Metadata about this warning in key: value format. For example:
|
||||
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
||||
# Corresponds to the JSON property `data`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Datum>]
|
||||
attr_accessor :data
|
||||
|
||||
# [Output Only] A human-readable description of the warning code.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
|
||||
#
|
||||
class Datum
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A key that provides more detail on the warning being returned.
|
||||
# For example, for warnings where there are no results in a list request for a
|
||||
# particular zone, this key might be scope and the key value might be the zone
|
||||
# name. Other examples might be a key indicating a deprecated resource and a
|
||||
# suggested replacement, or a warning about invalid network settings (for
|
||||
# example, if an instance attempts to perform IP forwarding but is not enabled
|
||||
# for IP forwarding).
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# [Output Only] A warning data value corresponding to the key.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a list of Operation resources.
|
||||
class OperationList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of Operation resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::Operation>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always compute#operations for Operations
|
||||
# resource.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] This token allows you to get the next page of results for list
|
||||
# requests. If the number of results is larger than maxResults, use the
|
||||
# nextPageToken as a value for the query parameter pageToken in the next list
|
||||
# request. Subsequent list requests will have their own nextPageToken to
|
||||
# continue paging through the results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server-defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
# A public key for authenticating to guests.
|
||||
class PublicKey
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional textual description of the resource; provided by the client when
|
||||
# the resource is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Optional expiration timestamp. If provided, the timestamp must be in RFC3339
|
||||
# text format. If not provided, the public key never expires.
|
||||
# Corresponds to the JSON property `expirationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :expiration_timestamp
|
||||
|
||||
# [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
|
||||
# digest of the public key.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
||||
# Public key text in SSH format, defined by RFC4253 section 6.6.
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp)
|
||||
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
end
|
||||
end
|
||||
|
||||
# A User resource.
|
||||
class User
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional textual description of the resource; provided by the client when
|
||||
# the resource is created.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] A list of URLs to Group resources who contain the user. Users
|
||||
# are only members of groups in the same project.
|
||||
# Corresponds to the JSON property `groups`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :groups
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always clouduseraccounts#user for users.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Name of the resource; provided by the client when the resource is created.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Email address of account's owner. This account will be validated to make sure
|
||||
# it exists. The email can belong to any domain, but it must be tied to a Google
|
||||
# account.
|
||||
# Corresponds to the JSON property `owner`
|
||||
# @return [String]
|
||||
attr_accessor :owner
|
||||
|
||||
# [Output Only] Public keys that this user may use to login.
|
||||
# Corresponds to the JSON property `publicKeys`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::PublicKey>]
|
||||
attr_accessor :public_keys
|
||||
|
||||
# [Output Only] Server defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@groups = args[:groups] if args.key?(:groups)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@public_keys = args[:public_keys] if args.key?(:public_keys)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class UserList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of User resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ClouduseraccountsVmBeta::User>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always clouduseraccounts#userList for lists of
|
||||
# users.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] A token used to continue a truncated list request.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,352 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsVmBeta
|
||||
|
||||
class AuthorizedKeysView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Group
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Error
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class User
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthorizedKeysView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys'
|
||||
property :sudoer, as: 'sudoer'
|
||||
end
|
||||
end
|
||||
|
||||
class Group
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :members, as: 'members'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmBeta::Group, decorator: Google::Apis::ClouduseraccountsVmBeta::Group::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsAddMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class GroupsRemoveMemberRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :users, as: 'users'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxAccountViews
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsVmBeta::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsVmBeta::LinuxGroupView::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsVmBeta::LinuxUserView, decorator: Google::Apis::ClouduseraccountsVmBeta::LinuxUserView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetAuthorizedKeysViewResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmBeta::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsVmBeta::AuthorizedKeysView::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGetLinuxAccountViewsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmBeta::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsVmBeta::LinuxAccountViews::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxGroupView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gid, as: 'gid'
|
||||
property :group_name, as: 'groupName'
|
||||
collection :members, as: 'members'
|
||||
end
|
||||
end
|
||||
|
||||
class LinuxUserView
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gecos, as: 'gecos'
|
||||
property :gid, as: 'gid'
|
||||
property :home_directory, as: 'homeDirectory'
|
||||
property :shell, as: 'shell'
|
||||
property :uid, as: 'uid'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_operation_id, as: 'clientOperationId'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :end_time, as: 'endTime'
|
||||
property :error, as: 'error', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Representation
|
||||
|
||||
property :http_error_message, as: 'httpErrorMessage'
|
||||
property :http_error_status_code, as: 'httpErrorStatusCode'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :insert_time, as: 'insertTime'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :progress, as: 'progress'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :start_time, as: 'startTime'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :target_id, :numeric_string => true, as: 'targetId'
|
||||
property :target_link, as: 'targetLink'
|
||||
property :user, as: 'user'
|
||||
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Representation
|
||||
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Error::Representation
|
||||
|
||||
end
|
||||
|
||||
class Error
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :location, as: 'location'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class OperationList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmBeta::Operation, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class PublicKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :expiration_timestamp, as: 'expirationTimestamp'
|
||||
property :fingerprint, as: 'fingerprint'
|
||||
property :key, as: 'key'
|
||||
end
|
||||
end
|
||||
|
||||
class User
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
collection :groups, as: 'groups'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner'
|
||||
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsVmBeta::PublicKey, decorator: Google::Apis::ClouduseraccountsVmBeta::PublicKey::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class UserList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmBeta::User, decorator: Google::Apis::ClouduseraccountsVmBeta::User::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,908 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module ClouduseraccountsVmBeta
|
||||
# Cloud User Accounts API
|
||||
#
|
||||
# Creates and manages users and groups for accessing Google Compute Engine
|
||||
# virtual machines.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/clouduseraccounts_vm_beta'
|
||||
#
|
||||
# Clouduseraccounts = Google::Apis::ClouduseraccountsVmBeta # Alias the module
|
||||
# service = Clouduseraccounts::CloudUserAccountsService.new
|
||||
#
|
||||
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
||||
class CloudUserAccountsService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# 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.
|
||||
# Overrides userIp if both are provided.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'clouduseraccounts/vm_beta/projects/')
|
||||
@batch_path = 'batch/clouduseraccounts/vm_beta'
|
||||
end
|
||||
|
||||
# Deletes the specified operation resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] operation
|
||||
# Name of the Operations resource to delete.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/operations/{operation}', options)
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['operation'] = operation unless operation.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the specified operation resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] operation
|
||||
# Name of the Operations resource to return.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['operation'] = operation unless operation.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the list of operation resources contained within the specified
|
||||
# project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::OperationList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::OperationList]
|
||||
#
|
||||
# @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_global_accounts_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/operations', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::OperationList::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::OperationList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Adds users to the specified group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the group for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsVmBeta::GroupsAddMemberRequest] groups_add_member_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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 add_group_member(project, group_name, groups_add_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/groups/{groupName}/addMember', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::GroupsAddMemberRequest::Representation
|
||||
command.request_object = groups_add_member_request_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified Group resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the Group resource to delete.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/groups/{groupName}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified Group resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the Group resource to return.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Group] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Group]
|
||||
#
|
||||
# @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_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/groups/{groupName}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Group::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Group
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Group resource in the specified project using the data included in
|
||||
# the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsVmBeta::Group] group_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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 insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/groups', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::Group::Representation
|
||||
command.request_object = group_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the list of groups contained within the specified project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::GroupList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::GroupList]
|
||||
#
|
||||
# @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_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/groups', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::GroupList::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::GroupList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Removes users from the specified group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] group_name
|
||||
# Name of the group for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsVmBeta::GroupsRemoveMemberRequest] groups_remove_member_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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 remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::GroupsRemoveMemberRequest::Representation
|
||||
command.request_object = groups_remove_member_request_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['groupName'] = group_name unless group_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a list of authorized public keys for a specific user account.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# Name of the zone for this request.
|
||||
# @param [String] user
|
||||
# The user account for which you want to get a list of authorized public keys.
|
||||
# @param [String] instance
|
||||
# The fully-qualified URL of the virtual machine requesting the view.
|
||||
# @param [Boolean] login
|
||||
# Whether the view was requested as part of a user-initiated login.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse]
|
||||
#
|
||||
# @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_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['instance'] = instance unless instance.nil?
|
||||
command.query['login'] = login unless login.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of user accounts for an instance within a specific project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# Name of the zone for this request.
|
||||
# @param [String] instance
|
||||
# The fully-qualified URL of the virtual machine requesting the views.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse]
|
||||
#
|
||||
# @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_linux_linux_account_views(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['instance'] = instance unless instance.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Adds a public key to the specified User resource with the data included in the
|
||||
# request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsVmBeta::PublicKey] public_key_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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 add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::PublicKey::Representation
|
||||
command.request_object = public_key_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified User resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user resource to delete.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/global/users/{user}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified User resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user resource to return.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::User] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::User]
|
||||
#
|
||||
# @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_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/users/{user}', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::User::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::User
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a User resource in the specified project using the data included in
|
||||
# the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ClouduseraccountsVmBeta::User] user_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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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 insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/users', options)
|
||||
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::User::Representation
|
||||
command.request_object = user_object
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of users contained within the specified project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
||||
# also filter on nested fields. For example, you could filter on instances that
|
||||
# have set the scheduling.automaticRestart field to true. In particular, use
|
||||
# filtering on nested fields to take advantage of instance labels to organize
|
||||
# and filter results based on label values.
|
||||
# The Beta API also supports filtering on multiple expressions by providing each
|
||||
# separate expression within parentheses. For example, (scheduling.
|
||||
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
||||
# treated as AND expressions, meaning that resources must match all expressions
|
||||
# to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests.
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::UserList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::UserList]
|
||||
#
|
||||
# @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_users(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/users', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::UserList::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::UserList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Removes the specified public key from the user.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] user
|
||||
# Name of the user for this request.
|
||||
# @param [String] fingerprint
|
||||
# The fingerprint of the public key to delete. Public keys are identified by
|
||||
# their fingerprint, which is defined by RFC4716 to be the MD5 digest of the
|
||||
# public key.
|
||||
# @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.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
||||
#
|
||||
# @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 remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options)
|
||||
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['user'] = user unless user.nil?
|
||||
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -18,16 +18,16 @@ require 'google/apis/dlp_v2/representations.rb'
|
|||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud DLP API
|
||||
# Cloud Data Loss Prevention (DLP) API
|
||||
#
|
||||
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# Provides methods for detection, risk analysis, and de-identification of
|
||||
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# repositories.
|
||||
#
|
||||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180317'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,10 +20,10 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module DlpV2
|
||||
# Cloud DLP API
|
||||
# Cloud Data Loss Prevention (DLP) API
|
||||
#
|
||||
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# Provides methods for detection, risk analysis, and de-identification of
|
||||
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# repositories.
|
||||
#
|
||||
# @example
|
||||
|
|
|
@ -18,16 +18,16 @@ require 'google/apis/dlp_v2beta1/representations.rb'
|
|||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud DLP API
|
||||
# Cloud Data Loss Prevention (DLP) API
|
||||
#
|
||||
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# Provides methods for detection, risk analysis, and de-identification of
|
||||
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# repositories.
|
||||
#
|
||||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20180314'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,10 +20,10 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module DlpV2beta1
|
||||
# Cloud DLP API
|
||||
# Cloud Data Loss Prevention (DLP) API
|
||||
#
|
||||
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# Provides methods for detection, risk analysis, and de-identification of
|
||||
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# repositories.
|
||||
#
|
||||
# @example
|
||||
|
|
|
@ -18,16 +18,16 @@ require 'google/apis/dlp_v2beta2/representations.rb'
|
|||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud DLP API
|
||||
# Cloud Data Loss Prevention (DLP) API
|
||||
#
|
||||
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# Provides methods for detection, risk analysis, and de-identification of
|
||||
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# repositories.
|
||||
#
|
||||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20180315'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,10 +20,10 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module DlpV2beta2
|
||||
# Cloud DLP API
|
||||
# Cloud Data Loss Prevention (DLP) API
|
||||
#
|
||||
# The Google Data Loss Prevention API provides methods for detection of privacy-
|
||||
# sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# Provides methods for detection, risk analysis, and de-identification of
|
||||
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
||||
# repositories.
|
||||
#
|
||||
# @example
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/manufacturers/
|
||||
module ManufacturersV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180219'
|
||||
REVISION = '20180316'
|
||||
|
||||
# Manage your product listings for Google Manufacturer Center
|
||||
AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter'
|
||||
|
|
|
@ -43,7 +43,7 @@ module Google
|
|||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://manufacturers.googleapis.com/', '')
|
||||
super('https://content-manufacturers.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServicemanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180312'
|
||||
REVISION = '20180317'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1153,9 +1153,6 @@ module Google
|
|||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||
# Text can be excluded from doc using the following notation:
|
||||
# <pre><code>(-- internal comment --)</code></pre>
|
||||
# Comments can be made conditional using a visibility label. The below
|
||||
# text will be only rendered if the `BETA` label is available:
|
||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
||||
# A few directives are available in documentation. Note that
|
||||
# directives must appear on a single line to be properly
|
||||
# identified. The `include` directive includes a markdown file from
|
||||
|
@ -3576,9 +3573,6 @@ module Google
|
|||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||
# Text can be excluded from doc using the following notation:
|
||||
# <pre><code>(-- internal comment --)</code></pre>
|
||||
# Comments can be made conditional using a visibility label. The below
|
||||
# text will be only rendered if the `BETA` label is available:
|
||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
||||
# A few directives are available in documentation. Note that
|
||||
# directives must appear on a single line to be properly
|
||||
# identified. The `include` directive includes a markdown file from
|
||||
|
@ -3815,27 +3809,6 @@ module Google
|
|||
# @return [Google::Apis::ServicemanagementV1::Usage]
|
||||
attr_accessor :usage
|
||||
|
||||
# `Visibility` defines restrictions for the visibility of service
|
||||
# elements. Restrictions are specified using visibility labels
|
||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
||||
# Users and projects can have access to more than one visibility label. The
|
||||
# effective visibility for multiple labels is the union of each label's
|
||||
# elements, plus any unrestricted elements.
|
||||
# If an element and its parents have no restrictions, visibility is
|
||||
# unconditionally granted.
|
||||
# Example:
|
||||
# visibility:
|
||||
# rules:
|
||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
||||
# restriction: TRUSTED_TESTER
|
||||
# - selector: google.calendar.Calendar.Delegate
|
||||
# restriction: GOOGLE_INTERNAL
|
||||
# Here, all methods are publicly visible except for the restricted methods
|
||||
# EnhancedSearch and Delegate.
|
||||
# Corresponds to the JSON property `visibility`
|
||||
# @return [Google::Apis::ServicemanagementV1::Visibility]
|
||||
attr_accessor :visibility
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -3870,7 +3843,6 @@ module Google
|
|||
@title = args[:title] if args.key?(:title)
|
||||
@types = args[:types] if args.key?(:types)
|
||||
@usage = args[:usage] if args.key?(:usage)
|
||||
@visibility = args[:visibility] if args.key?(:visibility)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -4497,79 +4469,6 @@ module Google
|
|||
@skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control)
|
||||
end
|
||||
end
|
||||
|
||||
# `Visibility` defines restrictions for the visibility of service
|
||||
# elements. Restrictions are specified using visibility labels
|
||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
||||
# Users and projects can have access to more than one visibility label. The
|
||||
# effective visibility for multiple labels is the union of each label's
|
||||
# elements, plus any unrestricted elements.
|
||||
# If an element and its parents have no restrictions, visibility is
|
||||
# unconditionally granted.
|
||||
# Example:
|
||||
# visibility:
|
||||
# rules:
|
||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
||||
# restriction: TRUSTED_TESTER
|
||||
# - selector: google.calendar.Calendar.Delegate
|
||||
# restriction: GOOGLE_INTERNAL
|
||||
# Here, all methods are publicly visible except for the restricted methods
|
||||
# EnhancedSearch and Delegate.
|
||||
class Visibility
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of visibility rules that apply to individual API elements.
|
||||
# **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
# Corresponds to the JSON property `rules`
|
||||
# @return [Array<Google::Apis::ServicemanagementV1::VisibilityRule>]
|
||||
attr_accessor :rules
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@rules = args[:rules] if args.key?(:rules)
|
||||
end
|
||||
end
|
||||
|
||||
# A visibility rule provides visibility configuration for an individual API
|
||||
# element.
|
||||
class VisibilityRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A comma-separated list of visibility labels that apply to the `selector`.
|
||||
# Any of the listed labels can be used to grant the visibility.
|
||||
# If a rule has multiple labels, removing one of the labels but not all of
|
||||
# them can break clients.
|
||||
# Example:
|
||||
# visibility:
|
||||
# rules:
|
||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
||||
# restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
|
||||
# Removing GOOGLE_INTERNAL from this restriction will break clients that
|
||||
# rely on this method and only had access to it through GOOGLE_INTERNAL.
|
||||
# Corresponds to the JSON property `restriction`
|
||||
# @return [String]
|
||||
attr_accessor :restriction
|
||||
|
||||
# Selects methods, messages, fields, enums, etc. to which this rule applies.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
# @return [String]
|
||||
attr_accessor :selector
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@restriction = args[:restriction] if args.key?(:restriction)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -544,18 +544,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Visibility
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VisibilityRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Advice
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1297,8 +1285,6 @@ module Google
|
|||
|
||||
property :usage, as: 'usage', class: Google::Apis::ServicemanagementV1::Usage, decorator: Google::Apis::ServicemanagementV1::Usage::Representation
|
||||
|
||||
property :visibility, as: 'visibility', class: Google::Apis::ServicemanagementV1::Visibility, decorator: Google::Apis::ServicemanagementV1::Visibility::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1447,22 +1433,6 @@ module Google
|
|||
property :skip_service_control, as: 'skipServiceControl'
|
||||
end
|
||||
end
|
||||
|
||||
class Visibility
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :rules, as: 'rules', class: Google::Apis::ServicemanagementV1::VisibilityRule, decorator: Google::Apis::ServicemanagementV1::VisibilityRule::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class VisibilityRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :restriction, as: 'restriction'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -586,6 +586,9 @@ module Google
|
|||
# This method only stores the service configuration. To roll out the service
|
||||
# configuration to backend systems please call
|
||||
# CreateServiceRollout.
|
||||
# Only the 100 most recent service configurations and ones referenced by
|
||||
# existing rollouts are kept for each service. The rest will be deleted
|
||||
# eventually.
|
||||
# @param [String] service_name
|
||||
# The name of the service. See the [overview](/service-management/overview)
|
||||
# for naming requirements. For example: `example.googleapis.com`.
|
||||
|
@ -702,6 +705,9 @@ module Google
|
|||
# generated service configuration. To rollout the service configuration to
|
||||
# other services,
|
||||
# please call CreateServiceRollout.
|
||||
# Only the 100 most recent configuration sources and ones referenced by
|
||||
# existing service configurtions are kept for each service. The rest will be
|
||||
# deleted eventually.
|
||||
# Operation<response: SubmitConfigSourceResponse>
|
||||
# @param [String] service_name
|
||||
# The name of the service. See the [overview](/service-management/overview)
|
||||
|
@ -853,6 +859,9 @@ module Google
|
|||
# Please note that any previous pending and running Rollouts and associated
|
||||
# Operations will be automatically cancelled so that the latest Rollout will
|
||||
# not be blocked by previous Rollouts.
|
||||
# Only the 100 most recent (in any state) and the last 10 successful (if not
|
||||
# already part of the set of 100 most recent) rollouts are kept for each
|
||||
# service. The rest will be deleted eventually.
|
||||
# Operation<response: Rollout>
|
||||
# @param [String] service_name
|
||||
# The name of the service. See the [overview](/service-management/overview)
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServiceuserV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180312'
|
||||
REVISION = '20180316'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -754,9 +754,6 @@ module Google
|
|||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||
# Text can be excluded from doc using the following notation:
|
||||
# <pre><code>(-- internal comment --)</code></pre>
|
||||
# Comments can be made conditional using a visibility label. The below
|
||||
# text will be only rendered if the `BETA` label is available:
|
||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
||||
# A few directives are available in documentation. Note that
|
||||
# directives must appear on a single line to be properly
|
||||
# identified. The `include` directive includes a markdown file from
|
||||
|
@ -2889,9 +2886,6 @@ module Google
|
|||
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||
# Text can be excluded from doc using the following notation:
|
||||
# <pre><code>(-- internal comment --)</code></pre>
|
||||
# Comments can be made conditional using a visibility label. The below
|
||||
# text will be only rendered if the `BETA` label is available:
|
||||
# <pre><code>(--BETA: comment for BETA users --)</code></pre>
|
||||
# A few directives are available in documentation. Note that
|
||||
# directives must appear on a single line to be properly
|
||||
# identified. The `include` directive includes a markdown file from
|
||||
|
@ -3128,27 +3122,6 @@ module Google
|
|||
# @return [Google::Apis::ServiceuserV1::Usage]
|
||||
attr_accessor :usage
|
||||
|
||||
# `Visibility` defines restrictions for the visibility of service
|
||||
# elements. Restrictions are specified using visibility labels
|
||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
||||
# Users and projects can have access to more than one visibility label. The
|
||||
# effective visibility for multiple labels is the union of each label's
|
||||
# elements, plus any unrestricted elements.
|
||||
# If an element and its parents have no restrictions, visibility is
|
||||
# unconditionally granted.
|
||||
# Example:
|
||||
# visibility:
|
||||
# rules:
|
||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
||||
# restriction: TRUSTED_TESTER
|
||||
# - selector: google.calendar.Calendar.Delegate
|
||||
# restriction: GOOGLE_INTERNAL
|
||||
# Here, all methods are publicly visible except for the restricted methods
|
||||
# EnhancedSearch and Delegate.
|
||||
# Corresponds to the JSON property `visibility`
|
||||
# @return [Google::Apis::ServiceuserV1::Visibility]
|
||||
attr_accessor :visibility
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -3183,7 +3156,6 @@ module Google
|
|||
@title = args[:title] if args.key?(:title)
|
||||
@types = args[:types] if args.key?(:types)
|
||||
@usage = args[:usage] if args.key?(:usage)
|
||||
@visibility = args[:visibility] if args.key?(:visibility)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -3580,79 +3552,6 @@ module Google
|
|||
@skip_service_control = args[:skip_service_control] if args.key?(:skip_service_control)
|
||||
end
|
||||
end
|
||||
|
||||
# `Visibility` defines restrictions for the visibility of service
|
||||
# elements. Restrictions are specified using visibility labels
|
||||
# (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects.
|
||||
# Users and projects can have access to more than one visibility label. The
|
||||
# effective visibility for multiple labels is the union of each label's
|
||||
# elements, plus any unrestricted elements.
|
||||
# If an element and its parents have no restrictions, visibility is
|
||||
# unconditionally granted.
|
||||
# Example:
|
||||
# visibility:
|
||||
# rules:
|
||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
||||
# restriction: TRUSTED_TESTER
|
||||
# - selector: google.calendar.Calendar.Delegate
|
||||
# restriction: GOOGLE_INTERNAL
|
||||
# Here, all methods are publicly visible except for the restricted methods
|
||||
# EnhancedSearch and Delegate.
|
||||
class Visibility
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of visibility rules that apply to individual API elements.
|
||||
# **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
# Corresponds to the JSON property `rules`
|
||||
# @return [Array<Google::Apis::ServiceuserV1::VisibilityRule>]
|
||||
attr_accessor :rules
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@rules = args[:rules] if args.key?(:rules)
|
||||
end
|
||||
end
|
||||
|
||||
# A visibility rule provides visibility configuration for an individual API
|
||||
# element.
|
||||
class VisibilityRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A comma-separated list of visibility labels that apply to the `selector`.
|
||||
# Any of the listed labels can be used to grant the visibility.
|
||||
# If a rule has multiple labels, removing one of the labels but not all of
|
||||
# them can break clients.
|
||||
# Example:
|
||||
# visibility:
|
||||
# rules:
|
||||
# - selector: google.calendar.Calendar.EnhancedSearch
|
||||
# restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
|
||||
# Removing GOOGLE_INTERNAL from this restriction will break clients that
|
||||
# rely on this method and only had access to it through GOOGLE_INTERNAL.
|
||||
# Corresponds to the JSON property `restriction`
|
||||
# @return [String]
|
||||
attr_accessor :restriction
|
||||
|
||||
# Selects methods, messages, fields, enums, etc. to which this rule applies.
|
||||
# Refer to selector for syntax details.
|
||||
# Corresponds to the JSON property `selector`
|
||||
# @return [String]
|
||||
attr_accessor :selector
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@restriction = args[:restriction] if args.key?(:restriction)
|
||||
@selector = args[:selector] if args.key?(:selector)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -394,18 +394,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Visibility
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VisibilityRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Api
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -983,8 +971,6 @@ module Google
|
|||
|
||||
property :usage, as: 'usage', class: Google::Apis::ServiceuserV1::Usage, decorator: Google::Apis::ServiceuserV1::Usage::Representation
|
||||
|
||||
property :visibility, as: 'visibility', class: Google::Apis::ServiceuserV1::Visibility, decorator: Google::Apis::ServiceuserV1::Visibility::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1078,22 +1064,6 @@ module Google
|
|||
property :skip_service_control, as: 'skipServiceControl'
|
||||
end
|
||||
end
|
||||
|
||||
class Visibility
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :rules, as: 'rules', class: Google::Apis::ServiceuserV1::VisibilityRule, decorator: Google::Apis::ServiceuserV1::VisibilityRule::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class VisibilityRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :restriction, as: 'restriction'
|
||||
property :selector, as: 'selector'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://firebase.google.com/docs/test-lab/
|
||||
module ToolresultsV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20180314'
|
||||
REVISION = '20180320'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
Loading…
Reference in New Issue