From 066195ba9c8a55c7e13fccb797d858fa02b615bd Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 22 Mar 2018 00:35:44 +0000 Subject: [PATCH] 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 --- api_names_out.yaml | 27 + generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/classes.rb | 35 + .../androidpublisher_v2/representations.rb | 5 + generated/google/apis/appengine_v1.rb | 2 +- generated/google/apis/appengine_v1/classes.rb | 80 +- .../apis/appengine_v1/representations.rb | 31 + generated/google/apis/appengine_v1/service.rb | 2 +- generated/google/apis/appengine_v1alpha.rb | 2 +- .../google/apis/appengine_v1alpha/classes.rb | 28 + .../apis/appengine_v1alpha/representations.rb | 15 + .../google/apis/appengine_v1alpha/service.rb | 2 +- generated/google/apis/appengine_v1beta.rb | 2 +- .../google/apis/appengine_v1beta/classes.rb | 49 +- .../apis/appengine_v1beta/representations.rb | 16 + .../google/apis/appengine_v1beta/service.rb | 2 +- generated/google/apis/appengine_v1beta4.rb | 2 +- .../google/apis/appengine_v1beta4/classes.rb | 49 +- .../apis/appengine_v1beta4/representations.rb | 16 + .../google/apis/appengine_v1beta4/service.rb | 2 +- generated/google/apis/appengine_v1beta5.rb | 2 +- .../google/apis/appengine_v1beta5/classes.rb | 49 +- .../apis/appengine_v1beta5/representations.rb | 16 + .../google/apis/appengine_v1beta5/service.rb | 2 +- generated/google/apis/cloudiot_v1.rb | 2 +- generated/google/apis/cloudiot_v1/service.rb | 2 +- generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/service.rb | 2 +- .../google/apis/clouduseraccounts_alpha.rb | 44 - .../apis/clouduseraccounts_alpha/classes.rb | 1188 ----------------- .../representations.rb | 494 ------- .../apis/clouduseraccounts_alpha/service.rb | 1152 ---------------- .../google/apis/clouduseraccounts_beta.rb | 44 - .../apis/clouduseraccounts_beta/classes.rb | 845 ------------ .../clouduseraccounts_beta/representations.rb | 352 ----- .../apis/clouduseraccounts_beta/service.rb | 908 ------------- .../google/apis/clouduseraccounts_vm_alpha.rb | 44 - .../clouduseraccounts_vm_alpha/classes.rb | 1188 ----------------- .../representations.rb | 494 ------- .../clouduseraccounts_vm_alpha/service.rb | 1152 ---------------- .../google/apis/clouduseraccounts_vm_beta.rb | 44 - .../apis/clouduseraccounts_vm_beta/classes.rb | 845 ------------ .../representations.rb | 352 ----- .../apis/clouduseraccounts_vm_beta/service.rb | 908 ------------- generated/google/apis/dlp_v2.rb | 8 +- generated/google/apis/dlp_v2/service.rb | 6 +- generated/google/apis/dlp_v2beta1.rb | 8 +- generated/google/apis/dlp_v2beta1/service.rb | 6 +- generated/google/apis/dlp_v2beta2.rb | 8 +- generated/google/apis/dlp_v2beta2/service.rb | 6 +- generated/google/apis/manufacturers_v1.rb | 2 +- .../google/apis/manufacturers_v1/service.rb | 2 +- generated/google/apis/servicemanagement_v1.rb | 2 +- .../apis/servicemanagement_v1/classes.rb | 101 -- .../servicemanagement_v1/representations.rb | 30 - .../apis/servicemanagement_v1/service.rb | 9 + generated/google/apis/serviceuser_v1.rb | 2 +- .../google/apis/serviceuser_v1/classes.rb | 101 -- .../apis/serviceuser_v1/representations.rb | 30 - generated/google/apis/toolresults_v1beta3.rb | 2 +- 60 files changed, 442 insertions(+), 10381 deletions(-) delete mode 100644 generated/google/apis/clouduseraccounts_alpha.rb delete mode 100644 generated/google/apis/clouduseraccounts_alpha/classes.rb delete mode 100644 generated/google/apis/clouduseraccounts_alpha/representations.rb delete mode 100644 generated/google/apis/clouduseraccounts_alpha/service.rb delete mode 100644 generated/google/apis/clouduseraccounts_beta.rb delete mode 100644 generated/google/apis/clouduseraccounts_beta/classes.rb delete mode 100644 generated/google/apis/clouduseraccounts_beta/representations.rb delete mode 100644 generated/google/apis/clouduseraccounts_beta/service.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_alpha.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_alpha/classes.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_alpha/representations.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_alpha/service.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_beta.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_beta/classes.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_beta/representations.rb delete mode 100644 generated/google/apis/clouduseraccounts_vm_beta/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 496a8fb7f..7319bd1c5 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 2711d0480..3ca37ec94 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -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' diff --git a/generated/google/apis/androidpublisher_v2/classes.rb b/generated/google/apis/androidpublisher_v2/classes.rb index 8161ce136..5117eaa9a 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -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) diff --git a/generated/google/apis/androidpublisher_v2/representations.rb b/generated/google/apis/androidpublisher_v2/representations.rb index 004ce21ba..ca022ce17 100644 --- a/generated/google/apis/androidpublisher_v2/representations.rb +++ b/generated/google/apis/androidpublisher_v2/representations.rb @@ -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' diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index 322e10e4b..ea3d59384 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -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' diff --git a/generated/google/apis/appengine_v1/classes.rb b/generated/google/apis/appengine_v1/classes.rb index cb1abf7e8..09b321dde 100644 --- a/generated/google/apis/appengine_v1/classes.rb +++ b/generated/google/apis/appengine_v1/classes.rb @@ -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 diff --git a/generated/google/apis/appengine_v1/representations.rb b/generated/google/apis/appengine_v1/representations.rb index def05544f..9d1ee3881 100644 --- a/generated/google/apis/appengine_v1/representations.rb +++ b/generated/google/apis/appengine_v1/representations.rb @@ -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' diff --git a/generated/google/apis/appengine_v1/service.rb b/generated/google/apis/appengine_v1/service.rb index ee7e07f8e..bb61399a4 100644 --- a/generated/google/apis/appengine_v1/service.rb +++ b/generated/google/apis/appengine_v1/service.rb @@ -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 diff --git a/generated/google/apis/appengine_v1alpha.rb b/generated/google/apis/appengine_v1alpha.rb index 74aabddad..a3b8494c4 100644 --- a/generated/google/apis/appengine_v1alpha.rb +++ b/generated/google/apis/appengine_v1alpha.rb @@ -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' diff --git a/generated/google/apis/appengine_v1alpha/classes.rb b/generated/google/apis/appengine_v1alpha/classes.rb index 062128697..cd18f21ce 100644 --- a/generated/google/apis/appengine_v1alpha/classes.rb +++ b/generated/google/apis/appengine_v1alpha/classes.rb @@ -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) diff --git a/generated/google/apis/appengine_v1alpha/representations.rb b/generated/google/apis/appengine_v1alpha/representations.rb index 45f2ac55f..32d4dd0c7 100644 --- a/generated/google/apis/appengine_v1alpha/representations.rb +++ b/generated/google/apis/appengine_v1alpha/representations.rb @@ -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' diff --git a/generated/google/apis/appengine_v1alpha/service.rb b/generated/google/apis/appengine_v1alpha/service.rb index 6291f10d5..06e2660df 100644 --- a/generated/google/apis/appengine_v1alpha/service.rb +++ b/generated/google/apis/appengine_v1alpha/service.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index 86e98de85..506676c61 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb index 45fe2859e..48d044d07 100644 --- a/generated/google/apis/appengine_v1beta/classes.rb +++ b/generated/google/apis/appengine_v1beta/classes.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta/representations.rb b/generated/google/apis/appengine_v1beta/representations.rb index 7b63fb055..64ccca433 100644 --- a/generated/google/apis/appengine_v1beta/representations.rb +++ b/generated/google/apis/appengine_v1beta/representations.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta/service.rb b/generated/google/apis/appengine_v1beta/service.rb index f751095b7..b303124a8 100644 --- a/generated/google/apis/appengine_v1beta/service.rb +++ b/generated/google/apis/appengine_v1beta/service.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta4.rb b/generated/google/apis/appengine_v1beta4.rb index 4b15abfb5..1db5eb491 100644 --- a/generated/google/apis/appengine_v1beta4.rb +++ b/generated/google/apis/appengine_v1beta4.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta4/classes.rb b/generated/google/apis/appengine_v1beta4/classes.rb index dd7152e96..c0082910c 100644 --- a/generated/google/apis/appengine_v1beta4/classes.rb +++ b/generated/google/apis/appengine_v1beta4/classes.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta4/representations.rb b/generated/google/apis/appengine_v1beta4/representations.rb index ce24cf25a..ffde9253a 100644 --- a/generated/google/apis/appengine_v1beta4/representations.rb +++ b/generated/google/apis/appengine_v1beta4/representations.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta4/service.rb b/generated/google/apis/appengine_v1beta4/service.rb index 72a5673b6..1f8d4a51a 100644 --- a/generated/google/apis/appengine_v1beta4/service.rb +++ b/generated/google/apis/appengine_v1beta4/service.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta5.rb b/generated/google/apis/appengine_v1beta5.rb index c87438f55..fea2a36f4 100644 --- a/generated/google/apis/appengine_v1beta5.rb +++ b/generated/google/apis/appengine_v1beta5.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta5/classes.rb b/generated/google/apis/appengine_v1beta5/classes.rb index ce4b1449e..33578b61f 100644 --- a/generated/google/apis/appengine_v1beta5/classes.rb +++ b/generated/google/apis/appengine_v1beta5/classes.rb @@ -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 diff --git a/generated/google/apis/appengine_v1beta5/representations.rb b/generated/google/apis/appengine_v1beta5/representations.rb index 497807f8d..af4b4aa46 100644 --- a/generated/google/apis/appengine_v1beta5/representations.rb +++ b/generated/google/apis/appengine_v1beta5/representations.rb @@ -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' diff --git a/generated/google/apis/appengine_v1beta5/service.rb b/generated/google/apis/appengine_v1beta5/service.rb index 052fb65cb..7afc2cef3 100644 --- a/generated/google/apis/appengine_v1beta5/service.rb +++ b/generated/google/apis/appengine_v1beta5/service.rb @@ -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 diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index c8f29f54c..43be69f5c 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -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' diff --git a/generated/google/apis/cloudiot_v1/service.rb b/generated/google/apis/cloudiot_v1/service.rb index 1486f485c..b3b952c2b 100644 --- a/generated/google/apis/cloudiot_v1/service.rb +++ b/generated/google/apis/cloudiot_v1/service.rb @@ -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 diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index efbeca27c..199334fdc 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -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' diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index 022204a00..ce0b8c0b7 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -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 diff --git a/generated/google/apis/clouduseraccounts_alpha.rb b/generated/google/apis/clouduseraccounts_alpha.rb deleted file mode 100644 index 6afa3e895..000000000 --- a/generated/google/apis/clouduseraccounts_alpha.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_alpha/classes.rb b/generated/google/apis/clouduseraccounts_alpha/classes.rb deleted file mode 100644 index 5ceeaf1b0..000000000 --- a/generated/google/apis/clouduseraccounts_alpha/classes.rb +++ /dev/null @@ -1,1188 +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 - - # Enables "data access" audit logging for a service and specifies a list of - # members that are log-exempted. - class AuditConfig - include Google::Apis::Core::Hashable - - # Specifies the identities that are exempted from "data access" audit logging - # for the `service` specified above. Follows the same format of Binding.members. - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - - # Specifies a service that will be enabled for "data access" audit logging. For - # example, `resourcemanager`, `storage`, `compute`. `allServices` is a special - # value that covers all services. - # Corresponds to the JSON property `service` - # @return [String] - attr_accessor :service - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - @service = args[:service] if args.key?(:service) - end - end - - # 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] - 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 - - # Associates `members` with a `role`. - class Binding - include Google::Apis::Core::Hashable - - # Specifies the identities requesting access for a Cloud Platform resource. ` - # members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is on the - # internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone who is - # authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` or `joe@example.com`. - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. For - # example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the users - # of that domain. For example, `google.com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` - # , or `roles/owner`. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - - # A condition to be met. - class Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # Trusted attributes supplied by any service that owns resources and uses the - # IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # The object of the condition. Exactly one of these must be set. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] if args.key?(:iam) - @op = args[:op] if args.key?(:op) - @svc = args[:svc] if args.key?(:svc) - @sys = args[:sys] if args.key?(:sys) - @value = args[:value] if args.key?(:value) - @values = args[:values] if args.key?(:values) - 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] - 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] - 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] - 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] - 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] - 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] - 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::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::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] - 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 - - # Specifies what kind of log the caller must write - class LogConfig - include Google::Apis::Core::Hashable - - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::ClouduseraccountsAlpha::LogConfigCounterOptions] - attr_accessor :counter - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @counter = args[:counter] if args.key?(:counter) - end - end - - # Options for counters - class LogConfigCounterOptions - include Google::Apis::Core::Hashable - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @field = args[:field] if args.key?(:field) - @metric = args[:metric] if args.key?(:metric) - 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::ClouduseraccountsAlpha::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] - 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] - 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] - 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] - 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 - - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam). - class Policy - include Google::Apis::Core::Hashable - - # Specifies audit logging configs for "data access". "data access": generally - # refers to data reads/writes and admin reads. "admin activity": generally - # refers to admin writes. - # Note: `AuditConfig` doesn't apply to "admin activity", which always enables - # audit logging. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. Multiple `bindings` must not be - # specified for the same `role`. `bindings` with no members will result in an - # error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - # `etag` is used for optimistic concurrency control as a way to help prevent - # simultaneous updates of a policy from overwriting each other. It is strongly - # suggested that systems make use of the `etag` in the read-modify-write cycle - # to perform policy updates in order to avoid race conditions: An `etag` is - # returned in the response to `getIamPolicy`, and systems are expected to put - # that etag in the request to `setIamPolicy` to ensure that their change will be - # applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # - # Corresponds to the JSON property `iamOwned` - # @return [Boolean] - attr_accessor :iam_owned - alias_method :iam_owned?, :iam_owned - - # If more than one rule is specified, the rules are applied in the following - # manner: - All matching LOG rules are always applied. - If any DENY/ - # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if any ALLOW/ - # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if no rule applies, - # permission is denied. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - # Version of the `Policy`. The default version is 0. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audit_configs = args[:audit_configs] if args.key?(:audit_configs) - @bindings = args[:bindings] if args.key?(:bindings) - @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) - @version = args[:version] if args.key?(:version) - 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 rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries. - # Corresponds to the JSON property `ins` - # @return [Array] - attr_accessor :ins - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfigs` - # @return [Array] - attr_accessor :log_configs - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of - # entries. - # Corresponds to the JSON property `notIns` - # @return [Array] - attr_accessor :not_ins - - # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value - # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. - # *') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @action = args[:action] if args.key?(:action) - @conditions = args[:conditions] if args.key?(:conditions) - @description = args[:description] if args.key?(:description) - @ins = args[:ins] if args.key?(:ins) - @log_configs = args[:log_configs] if args.key?(:log_configs) - @not_ins = args[:not_ins] if args.key?(:not_ins) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # - class TestPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the 'resource'. Permissions with wildcards - # (such as '*' or 'storage.*') are not allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # - class TestPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - 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] - 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] - 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] - 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 diff --git a/generated/google/apis/clouduseraccounts_alpha/representations.rb b/generated/google/apis/clouduseraccounts_alpha/representations.rb deleted file mode 100644 index e11bdcbec..000000000 --- a/generated/google/apis/clouduseraccounts_alpha/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_alpha/service.rb b/generated/google/apis/clouduseraccounts_alpha/service.rb deleted file mode 100644 index b72170629..000000000 --- a/generated/google/apis/clouduseraccounts_alpha/service.rb +++ /dev/null @@ -1,1152 +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 ClouduseraccountsAlpha - # Cloud User Accounts API - # - # Creates and manages users and groups for accessing Google Compute Engine - # virtual machines. - # - # @example - # require 'google/apis/clouduseraccounts_alpha' - # - # Clouduseraccounts = Google::Apis::ClouduseraccountsAlpha # 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/alpha/projects/') - @batch_path = 'batch/clouduseraccounts/alpha' - 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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::OperationList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::OperationList::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::GroupsAddMemberRequest::Representation - command.request_object = groups_add_member_request_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Group] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Group::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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 - - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @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::ClouduseraccountsAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_group_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/groups/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Group::Representation - command.request_object = group_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::GroupList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::GroupList::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::GroupsRemoveMemberRequest::Representation - command.request_object = groups_remove_member_request_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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 - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsAlpha::Policy] policy_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::ClouduseraccountsAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_group_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/groups/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation - command.request_object = policy_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # 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::ClouduseraccountsAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/groups/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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::ClouduseraccountsAlpha::LinuxGetAuthorizedKeysViewResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::LinuxGetAuthorizedKeysViewResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::LinuxGetLinuxAccountViewsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::LinuxGetLinuxAccountViewsResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::PublicKey::Representation - command.request_object = public_key_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::User] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::User::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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 - - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @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::ClouduseraccountsAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_user_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/users/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::User::Representation - command.request_object = user_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::UserList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::UserList::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::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::ClouduseraccountsAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::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 - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsAlpha::Policy] policy_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::ClouduseraccountsAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_user_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/users/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation - command.request_object = policy_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # 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::ClouduseraccountsAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_user_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/users/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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 diff --git a/generated/google/apis/clouduseraccounts_beta.rb b/generated/google/apis/clouduseraccounts_beta.rb deleted file mode 100644 index c40cf72c9..000000000 --- a/generated/google/apis/clouduseraccounts_beta.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_beta/classes.rb b/generated/google/apis/clouduseraccounts_beta/classes.rb deleted file mode 100644 index 8baa9e8da..000000000 --- a/generated/google/apis/clouduseraccounts_beta/classes.rb +++ /dev/null @@ -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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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 diff --git a/generated/google/apis/clouduseraccounts_beta/representations.rb b/generated/google/apis/clouduseraccounts_beta/representations.rb deleted file mode 100644 index 56bedb4af..000000000 --- a/generated/google/apis/clouduseraccounts_beta/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_beta/service.rb b/generated/google/apis/clouduseraccounts_beta/service.rb deleted file mode 100644 index 4c74bd7e6..000000000 --- a/generated/google/apis/clouduseraccounts_beta/service.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_vm_alpha.rb b/generated/google/apis/clouduseraccounts_vm_alpha.rb deleted file mode 100644 index 4435dd5a5..000000000 --- a/generated/google/apis/clouduseraccounts_vm_alpha.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb b/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb deleted file mode 100644 index 3617aa169..000000000 --- a/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +++ /dev/null @@ -1,1188 +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 - - # Enables "data access" audit logging for a service and specifies a list of - # members that are log-exempted. - class AuditConfig - include Google::Apis::Core::Hashable - - # Specifies the identities that are exempted from "data access" audit logging - # for the `service` specified above. Follows the same format of Binding.members. - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - - # Specifies a service that will be enabled for "data access" audit logging. For - # example, `resourcemanager`, `storage`, `compute`. `allServices` is a special - # value that covers all services. - # Corresponds to the JSON property `service` - # @return [String] - attr_accessor :service - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - @service = args[:service] if args.key?(:service) - end - end - - # 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] - 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 - - # Associates `members` with a `role`. - class Binding - include Google::Apis::Core::Hashable - - # Specifies the identities requesting access for a Cloud Platform resource. ` - # members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is on the - # internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone who is - # authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` or `joe@example.com`. - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. For - # example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the users - # of that domain. For example, `google.com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` - # , or `roles/owner`. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - - # A condition to be met. - class Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # Trusted attributes supplied by any service that owns resources and uses the - # IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # The object of the condition. Exactly one of these must be set. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] if args.key?(:iam) - @op = args[:op] if args.key?(:op) - @svc = args[:svc] if args.key?(:svc) - @sys = args[:sys] if args.key?(:sys) - @value = args[:value] if args.key?(:value) - @values = args[:values] if args.key?(:values) - 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] - 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] - 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] - 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] - 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] - 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] - 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::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::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] - 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 - - # Specifies what kind of log the caller must write - class LogConfig - include Google::Apis::Core::Hashable - - # Options for counters - # Corresponds to the JSON property `counter` - # @return [Google::Apis::ClouduseraccountsVmAlpha::LogConfigCounterOptions] - attr_accessor :counter - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @counter = args[:counter] if args.key?(:counter) - end - end - - # Options for counters - class LogConfigCounterOptions - include Google::Apis::Core::Hashable - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @field = args[:field] if args.key?(:field) - @metric = args[:metric] if args.key?(:metric) - 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::ClouduseraccountsVmAlpha::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] - 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] - 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] - 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] - 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 - - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam). - class Policy - include Google::Apis::Core::Hashable - - # Specifies audit logging configs for "data access". "data access": generally - # refers to data reads/writes and admin reads. "admin activity": generally - # refers to admin writes. - # Note: `AuditConfig` doesn't apply to "admin activity", which always enables - # audit logging. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. Multiple `bindings` must not be - # specified for the same `role`. `bindings` with no members will result in an - # error. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - # `etag` is used for optimistic concurrency control as a way to help prevent - # simultaneous updates of a policy from overwriting each other. It is strongly - # suggested that systems make use of the `etag` in the read-modify-write cycle - # to perform policy updates in order to avoid race conditions: An `etag` is - # returned in the response to `getIamPolicy`, and systems are expected to put - # that etag in the request to `setIamPolicy` to ensure that their change will be - # applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # - # Corresponds to the JSON property `iamOwned` - # @return [Boolean] - attr_accessor :iam_owned - alias_method :iam_owned?, :iam_owned - - # If more than one rule is specified, the rules are applied in the following - # manner: - All matching LOG rules are always applied. - If any DENY/ - # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if any ALLOW/ - # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if no rule applies, - # permission is denied. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - # Version of the `Policy`. The default version is 0. - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audit_configs = args[:audit_configs] if args.key?(:audit_configs) - @bindings = args[:bindings] if args.key?(:bindings) - @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) - @version = args[:version] if args.key?(:version) - 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 rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # Additional restrictions that must be met - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries. - # Corresponds to the JSON property `ins` - # @return [Array] - attr_accessor :ins - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfigs` - # @return [Array] - attr_accessor :log_configs - - # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of - # entries. - # Corresponds to the JSON property `notIns` - # @return [Array] - attr_accessor :not_ins - - # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value - # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. - # *') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @action = args[:action] if args.key?(:action) - @conditions = args[:conditions] if args.key?(:conditions) - @description = args[:description] if args.key?(:description) - @ins = args[:ins] if args.key?(:ins) - @log_configs = args[:log_configs] if args.key?(:log_configs) - @not_ins = args[:not_ins] if args.key?(:not_ins) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # - class TestPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the 'resource'. Permissions with wildcards - # (such as '*' or 'storage.*') are not allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # - class TestPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - 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] - 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] - 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] - 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 diff --git a/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb b/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb deleted file mode 100644 index 9af56f14c..000000000 --- a/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_vm_alpha/service.rb b/generated/google/apis/clouduseraccounts_vm_alpha/service.rb deleted file mode 100644 index ed62f8949..000000000 --- a/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +++ /dev/null @@ -1,1152 +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 ClouduseraccountsVmAlpha - # Cloud User Accounts API - # - # Creates and manages users and groups for accessing Google Compute Engine - # virtual machines. - # - # @example - # require 'google/apis/clouduseraccounts_vm_alpha' - # - # Clouduseraccounts = Google::Apis::ClouduseraccountsVmAlpha # 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_alpha/projects/') - @batch_path = 'batch/clouduseraccounts/vm_alpha' - 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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::OperationList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::OperationList::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::GroupsAddMemberRequest::Representation - command.request_object = groups_add_member_request_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Group] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Group::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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 - - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @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::ClouduseraccountsVmAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_group_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/groups/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Group::Representation - command.request_object = group_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::GroupList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::GroupList::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::GroupsRemoveMemberRequest::Representation - command.request_object = groups_remove_member_request_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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 - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsVmAlpha::Policy] policy_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::ClouduseraccountsVmAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_group_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/groups/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation - command.request_object = policy_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # 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::ClouduseraccountsVmAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/groups/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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::ClouduseraccountsVmAlpha::LinuxGetAuthorizedKeysViewResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::LinuxGetAuthorizedKeysViewResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::LinuxGetLinuxAccountViewsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::LinuxGetLinuxAccountViewsResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::PublicKey::Representation - command.request_object = public_key_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::User] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::User::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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 - - # Gets the access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @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::ClouduseraccountsVmAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_user_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/users/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::User::Representation - command.request_object = user_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::UserList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::UserList::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::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::ClouduseraccountsVmAlpha::Operation::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::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 - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsVmAlpha::Policy] policy_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::ClouduseraccountsVmAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_user_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/users/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation - command.request_object = policy_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] resource - # Name of the resource for this request. - # @param [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # 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::ClouduseraccountsVmAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_user_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/users/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['resource'] = resource unless resource.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 diff --git a/generated/google/apis/clouduseraccounts_vm_beta.rb b/generated/google/apis/clouduseraccounts_vm_beta.rb deleted file mode 100644 index 202cb6088..000000000 --- a/generated/google/apis/clouduseraccounts_vm_beta.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_vm_beta/classes.rb b/generated/google/apis/clouduseraccounts_vm_beta/classes.rb deleted file mode 100644 index 25ccbd6ce..000000000 --- a/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +++ /dev/null @@ -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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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] - 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 diff --git a/generated/google/apis/clouduseraccounts_vm_beta/representations.rb b/generated/google/apis/clouduseraccounts_vm_beta/representations.rb deleted file mode 100644 index e57c98fc0..000000000 --- a/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/clouduseraccounts_vm_beta/service.rb b/generated/google/apis/clouduseraccounts_vm_beta/service.rb deleted file mode 100644 index 801952c94..000000000 --- a/generated/google/apis/clouduseraccounts_vm_beta/service.rb +++ /dev/null @@ -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 diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index d68e31679..3c5f12ce5 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -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' diff --git a/generated/google/apis/dlp_v2/service.rb b/generated/google/apis/dlp_v2/service.rb index 07f13d120..70d7d2ab9 100644 --- a/generated/google/apis/dlp_v2/service.rb +++ b/generated/google/apis/dlp_v2/service.rb @@ -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 diff --git a/generated/google/apis/dlp_v2beta1.rb b/generated/google/apis/dlp_v2beta1.rb index 944f2dd89..f38994496 100644 --- a/generated/google/apis/dlp_v2beta1.rb +++ b/generated/google/apis/dlp_v2beta1.rb @@ -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' diff --git a/generated/google/apis/dlp_v2beta1/service.rb b/generated/google/apis/dlp_v2beta1/service.rb index 2760351fa..846850c90 100644 --- a/generated/google/apis/dlp_v2beta1/service.rb +++ b/generated/google/apis/dlp_v2beta1/service.rb @@ -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 diff --git a/generated/google/apis/dlp_v2beta2.rb b/generated/google/apis/dlp_v2beta2.rb index 54c9c318b..dc23c9a91 100644 --- a/generated/google/apis/dlp_v2beta2.rb +++ b/generated/google/apis/dlp_v2beta2.rb @@ -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' diff --git a/generated/google/apis/dlp_v2beta2/service.rb b/generated/google/apis/dlp_v2beta2/service.rb index 11031b90d..e80b55731 100644 --- a/generated/google/apis/dlp_v2beta2/service.rb +++ b/generated/google/apis/dlp_v2beta2/service.rb @@ -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 diff --git a/generated/google/apis/manufacturers_v1.rb b/generated/google/apis/manufacturers_v1.rb index 8ab32edd7..ab932040d 100644 --- a/generated/google/apis/manufacturers_v1.rb +++ b/generated/google/apis/manufacturers_v1.rb @@ -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' diff --git a/generated/google/apis/manufacturers_v1/service.rb b/generated/google/apis/manufacturers_v1/service.rb index 01915369d..58189af22 100644 --- a/generated/google/apis/manufacturers_v1/service.rb +++ b/generated/google/apis/manufacturers_v1/service.rb @@ -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 diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index b112487a9..260063e91 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -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' diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index c5afa43d4..80c5e612e 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -1153,9 +1153,6 @@ module Google #
[display text][fully.qualified.proto.name]
# Text can be excluded from doc using the following notation: #
(-- internal comment --)
- # Comments can be made conditional using a visibility label. The below - # text will be only rendered if the `BETA` label is available: - #
(--BETA: comment for BETA users --)
# 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 #
[display text][fully.qualified.proto.name]
# Text can be excluded from doc using the following notation: #
(-- internal comment --)
- # Comments can be made conditional using a visibility label. The below - # text will be only rendered if the `BETA` label is available: - #
(--BETA: comment for BETA users --)
# 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] - 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 diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index 60a8bbda4..f97f0ddf2 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -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 diff --git a/generated/google/apis/servicemanagement_v1/service.rb b/generated/google/apis/servicemanagement_v1/service.rb index b464650a4..96923e42d 100644 --- a/generated/google/apis/servicemanagement_v1/service.rb +++ b/generated/google/apis/servicemanagement_v1/service.rb @@ -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 # @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 # @param [String] service_name # The name of the service. See the [overview](/service-management/overview) diff --git a/generated/google/apis/serviceuser_v1.rb b/generated/google/apis/serviceuser_v1.rb index a25da5d33..4e0989b6b 100644 --- a/generated/google/apis/serviceuser_v1.rb +++ b/generated/google/apis/serviceuser_v1.rb @@ -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' diff --git a/generated/google/apis/serviceuser_v1/classes.rb b/generated/google/apis/serviceuser_v1/classes.rb index 0cadf4810..fa61a105f 100644 --- a/generated/google/apis/serviceuser_v1/classes.rb +++ b/generated/google/apis/serviceuser_v1/classes.rb @@ -754,9 +754,6 @@ module Google #
[display text][fully.qualified.proto.name]
# Text can be excluded from doc using the following notation: #
(-- internal comment --)
- # Comments can be made conditional using a visibility label. The below - # text will be only rendered if the `BETA` label is available: - #
(--BETA: comment for BETA users --)
# 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 #
[display text][fully.qualified.proto.name]
# Text can be excluded from doc using the following notation: #
(-- internal comment --)
- # Comments can be made conditional using a visibility label. The below - # text will be only rendered if the `BETA` label is available: - #
(--BETA: comment for BETA users --)
# 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] - 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 diff --git a/generated/google/apis/serviceuser_v1/representations.rb b/generated/google/apis/serviceuser_v1/representations.rb index 401f003b1..9e9aeff5f 100644 --- a/generated/google/apis/serviceuser_v1/representations.rb +++ b/generated/google/apis/serviceuser_v1/representations.rb @@ -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 diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 61497f017..bb87e9813 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -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'