From 1797e319c5e3094e5d46c7841e1f9178ea62b8a6 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 21 Sep 2017 00:37:23 +0000 Subject: [PATCH] Autogenerated update (2017-09-21) Add: - oslogin_v1beta - testing_v1 Update: - cloudbuild_v1 - container_v1beta1 - deploymentmanager_alpha - deploymentmanager_v2 - deploymentmanager_v2beta - dlp_v2beta1 - gmail_v1 - spanner_v1 - storagetransfer_v1 --- api_names_out.yaml | 72 + generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 3 + generated/google/apis/container_v1beta1.rb | 2 +- .../google/apis/container_v1beta1/classes.rb | 119 ++ .../apis/container_v1beta1/representations.rb | 62 + .../google/apis/container_v1beta1/service.rb | 77 + .../google/apis/deploymentmanager_alpha.rb | 2 +- .../apis/deploymentmanager_alpha/classes.rb | 127 +- generated/google/apis/deploymentmanager_v2.rb | 2 +- .../apis/deploymentmanager_v2/classes.rb | 101 +- .../google/apis/deploymentmanager_v2beta.rb | 2 +- .../apis/deploymentmanager_v2beta/classes.rb | 124 +- generated/google/apis/dlp_v2beta1.rb | 2 +- generated/google/apis/dlp_v2beta1/classes.rb | 40 +- generated/google/apis/dlp_v2beta1/service.rb | 20 +- generated/google/apis/gmail_v1.rb | 2 +- generated/google/apis/oslogin_v1beta.rb | 37 + .../google/apis/oslogin_v1beta/classes.rb | 202 +++ .../apis/oslogin_v1beta/representations.rb | 105 ++ .../google/apis/oslogin_v1beta/service.rb | 228 +++ generated/google/apis/spanner_v1.rb | 2 +- generated/google/apis/spanner_v1/classes.rb | 75 +- .../google/apis/spanner_v1/representations.rb | 32 + generated/google/apis/spanner_v1/service.rb | 53 +- generated/google/apis/storagetransfer_v1.rb | 2 +- .../google/apis/storagetransfer_v1/classes.rb | 1 - generated/google/apis/testing_v1.rb | 38 + generated/google/apis/testing_v1/classes.rb | 1616 +++++++++++++++++ .../google/apis/testing_v1/representations.rb | 688 +++++++ generated/google/apis/testing_v1/service.rb | 221 +++ 31 files changed, 3843 insertions(+), 216 deletions(-) create mode 100644 generated/google/apis/oslogin_v1beta.rb create mode 100644 generated/google/apis/oslogin_v1beta/classes.rb create mode 100644 generated/google/apis/oslogin_v1beta/representations.rb create mode 100644 generated/google/apis/oslogin_v1beta/service.rb create mode 100644 generated/google/apis/testing_v1.rb create mode 100644 generated/google/apis/testing_v1/classes.rb create mode 100644 generated/google/apis/testing_v1/representations.rb create mode 100644 generated/google/apis/testing_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 06323acb6..c1176295a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -27129,6 +27129,7 @@ "/container:v1beta1/Cluster/locations": locations "/container:v1beta1/Cluster/locations/location": location "/container:v1beta1/Cluster/loggingService": logging_service +"/container:v1beta1/Cluster/maintenancePolicy": maintenance_policy "/container:v1beta1/Cluster/masterAuth": master_auth "/container:v1beta1/Cluster/masterAuthorizedNetworksConfig": master_authorized_networks_config "/container:v1beta1/Cluster/monitoringService": monitoring_service @@ -27172,6 +27173,9 @@ "/container:v1beta1/CreateNodePoolRequest/parent": parent "/container:v1beta1/CreateNodePoolRequest/projectId": project_id "/container:v1beta1/CreateNodePoolRequest/zone": zone +"/container:v1beta1/DailyMaintenanceWindow": daily_maintenance_window +"/container:v1beta1/DailyMaintenanceWindow/duration": duration +"/container:v1beta1/DailyMaintenanceWindow/startTime": start_time "/container:v1beta1/Empty": empty "/container:v1beta1/HorizontalPodAutoscaling": horizontal_pod_autoscaling "/container:v1beta1/HorizontalPodAutoscaling/disabled": disabled @@ -27204,6 +27208,10 @@ "/container:v1beta1/ListOperationsResponse/missingZones/missing_zone": missing_zone "/container:v1beta1/ListOperationsResponse/operations": operations "/container:v1beta1/ListOperationsResponse/operations/operation": operation +"/container:v1beta1/MaintenancePolicy": maintenance_policy +"/container:v1beta1/MaintenancePolicy/window": window +"/container:v1beta1/MaintenanceWindow": maintenance_window +"/container:v1beta1/MaintenanceWindow/dailyMaintenanceWindow": daily_maintenance_window "/container:v1beta1/MasterAuth": master_auth "/container:v1beta1/MasterAuth/clientCertificate": client_certificate "/container:v1beta1/MasterAuth/clientCertificateConfig": client_certificate_config @@ -27303,6 +27311,12 @@ "/container:v1beta1/SetLegacyAbacRequest/name": name "/container:v1beta1/SetLegacyAbacRequest/projectId": project_id "/container:v1beta1/SetLegacyAbacRequest/zone": zone +"/container:v1beta1/SetMaintenancePolicyRequest": set_maintenance_policy_request +"/container:v1beta1/SetMaintenancePolicyRequest/clusterId": cluster_id +"/container:v1beta1/SetMaintenancePolicyRequest/maintenancePolicy": maintenance_policy +"/container:v1beta1/SetMaintenancePolicyRequest/name": name +"/container:v1beta1/SetMaintenancePolicyRequest/projectId": project_id +"/container:v1beta1/SetMaintenancePolicyRequest/zone": zone "/container:v1beta1/SetMasterAuthRequest": set_master_auth_request "/container:v1beta1/SetMasterAuthRequest/action": action "/container:v1beta1/SetMasterAuthRequest/clusterId": cluster_id @@ -27378,6 +27392,8 @@ "/container:v1beta1/container.projects.locations.clusters.nodePools.setManagement/name": name "/container:v1beta1/container.projects.locations.clusters.setLegacyAbac": set_cluster_legacy_abac "/container:v1beta1/container.projects.locations.clusters.setLegacyAbac/name": name +"/container:v1beta1/container.projects.locations.clusters.setMaintenancePolicy": set_project_location_cluster_maintenance_policy +"/container:v1beta1/container.projects.locations.clusters.setMaintenancePolicy/name": name "/container:v1beta1/container.projects.locations.clusters.setMasterAuth": set_project_location_cluster_master_auth "/container:v1beta1/container.projects.locations.clusters.setMasterAuth/name": name "/container:v1beta1/container.projects.locations.clusters.setNetworkPolicy": set_project_location_cluster_network_policy @@ -27464,6 +27480,10 @@ "/container:v1beta1/container.projects.zones.clusters.resourceLabels/clusterId": cluster_id "/container:v1beta1/container.projects.zones.clusters.resourceLabels/projectId": project_id "/container:v1beta1/container.projects.zones.clusters.resourceLabels/zone": zone +"/container:v1beta1/container.projects.zones.clusters.setMaintenancePolicy": set_project_zone_cluster_maintenance_policy +"/container:v1beta1/container.projects.zones.clusters.setMaintenancePolicy/clusterId": cluster_id +"/container:v1beta1/container.projects.zones.clusters.setMaintenancePolicy/projectId": project_id +"/container:v1beta1/container.projects.zones.clusters.setMaintenancePolicy/zone": zone "/container:v1beta1/container.projects.zones.clusters.setMasterAuth": set_project_zone_cluster_master_auth "/container:v1beta1/container.projects.zones.clusters.setMasterAuth/clusterId": cluster_id "/container:v1beta1/container.projects.zones.clusters.setMasterAuth/projectId": project_id @@ -46376,6 +46396,43 @@ "/oslogin:v1alpha/oslogin.users.sshPublicKeys.patch/name": name "/oslogin:v1alpha/oslogin.users.sshPublicKeys.patch/updateMask": update_mask "/oslogin:v1alpha/quotaUser": quota_user +"/oslogin:v1beta/Empty": empty +"/oslogin:v1beta/ImportSshPublicKeyResponse": import_ssh_public_key_response +"/oslogin:v1beta/ImportSshPublicKeyResponse/loginProfile": login_profile +"/oslogin:v1beta/LoginProfile": login_profile +"/oslogin:v1beta/LoginProfile/name": name +"/oslogin:v1beta/LoginProfile/posixAccounts": posix_accounts +"/oslogin:v1beta/LoginProfile/posixAccounts/posix_account": posix_account +"/oslogin:v1beta/LoginProfile/sshPublicKeys": ssh_public_keys +"/oslogin:v1beta/LoginProfile/sshPublicKeys/ssh_public_key": ssh_public_key +"/oslogin:v1beta/LoginProfile/suspended": suspended +"/oslogin:v1beta/PosixAccount": posix_account +"/oslogin:v1beta/PosixAccount/gecos": gecos +"/oslogin:v1beta/PosixAccount/gid": gid +"/oslogin:v1beta/PosixAccount/homeDirectory": home_directory +"/oslogin:v1beta/PosixAccount/primary": primary +"/oslogin:v1beta/PosixAccount/shell": shell +"/oslogin:v1beta/PosixAccount/systemId": system_id +"/oslogin:v1beta/PosixAccount/uid": uid +"/oslogin:v1beta/PosixAccount/username": username +"/oslogin:v1beta/SshPublicKey": ssh_public_key +"/oslogin:v1beta/SshPublicKey/expirationTimeUsec": expiration_time_usec +"/oslogin:v1beta/SshPublicKey/fingerprint": fingerprint +"/oslogin:v1beta/SshPublicKey/key": key +"/oslogin:v1beta/fields": fields +"/oslogin:v1beta/key": key +"/oslogin:v1beta/oslogin.users.getLoginProfile": get_user_login_profile +"/oslogin:v1beta/oslogin.users.getLoginProfile/name": name +"/oslogin:v1beta/oslogin.users.importSshPublicKey": import_user_ssh_public_key +"/oslogin:v1beta/oslogin.users.importSshPublicKey/parent": parent +"/oslogin:v1beta/oslogin.users.sshPublicKeys.delete": delete_user_ssh_public_key +"/oslogin:v1beta/oslogin.users.sshPublicKeys.delete/name": name +"/oslogin:v1beta/oslogin.users.sshPublicKeys.get": get_user_ssh_public_key +"/oslogin:v1beta/oslogin.users.sshPublicKeys.get/name": name +"/oslogin:v1beta/oslogin.users.sshPublicKeys.patch": patch_user_ssh_public_key +"/oslogin:v1beta/oslogin.users.sshPublicKeys.patch/name": name +"/oslogin:v1beta/oslogin.users.sshPublicKeys.patch/updateMask": update_mask +"/oslogin:v1beta/quotaUser": quota_user "/pagespeedonline:v1/Result": result "/pagespeedonline:v1/Result/formattedResults": formatted_results "/pagespeedonline:v1/Result/formattedResults/locale": locale @@ -53197,6 +53254,8 @@ "/spanner:v1/CreateInstanceRequest": create_instance_request "/spanner:v1/CreateInstanceRequest/instance": instance "/spanner:v1/CreateInstanceRequest/instanceId": instance_id +"/spanner:v1/CreateSessionRequest": create_session_request +"/spanner:v1/CreateSessionRequest/session": session "/spanner:v1/DataAccessOptions": data_access_options "/spanner:v1/Database": database "/spanner:v1/Database/name": name @@ -53269,6 +53328,10 @@ "/spanner:v1/ListOperationsResponse/nextPageToken": next_page_token "/spanner:v1/ListOperationsResponse/operations": operations "/spanner:v1/ListOperationsResponse/operations/operation": operation +"/spanner:v1/ListSessionsResponse": list_sessions_response +"/spanner:v1/ListSessionsResponse/nextPageToken": next_page_token +"/spanner:v1/ListSessionsResponse/sessions": sessions +"/spanner:v1/ListSessionsResponse/sessions/session": session "/spanner:v1/LogConfig": log_config "/spanner:v1/LogConfig/cloudAudit": cloud_audit "/spanner:v1/LogConfig/counter": counter @@ -53364,6 +53427,10 @@ "/spanner:v1/Rule/permissions": permissions "/spanner:v1/Rule/permissions/permission": permission "/spanner:v1/Session": session +"/spanner:v1/Session/approximateLastUseTime": approximate_last_use_time +"/spanner:v1/Session/createTime": create_time +"/spanner:v1/Session/labels": labels +"/spanner:v1/Session/labels/label": label "/spanner:v1/Session/name": name "/spanner:v1/SetIamPolicyRequest": set_iam_policy_request "/spanner:v1/SetIamPolicyRequest/policy": policy @@ -53476,6 +53543,11 @@ "/spanner:v1/spanner.projects.instances.databases.sessions.executeStreamingSql/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.get": get_project_instance_database_session "/spanner:v1/spanner.projects.instances.databases.sessions.get/name": name +"/spanner:v1/spanner.projects.instances.databases.sessions.list": list_project_instance_database_sessions +"/spanner:v1/spanner.projects.instances.databases.sessions.list/database": database +"/spanner:v1/spanner.projects.instances.databases.sessions.list/filter": filter +"/spanner:v1/spanner.projects.instances.databases.sessions.list/pageSize": page_size +"/spanner:v1/spanner.projects.instances.databases.sessions.list/pageToken": page_token "/spanner:v1/spanner.projects.instances.databases.sessions.read": read_session "/spanner:v1/spanner.projects.instances.databases.sessions.read/session": session "/spanner:v1/spanner.projects.instances.databases.sessions.rollback": rollback_session diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 266500fa6..9008152c3 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20170912' + REVISION = '20170920' # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index f7a1d038f..fa488043b 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -35,6 +35,7 @@ module Google # - $TAG_NAME: the tag name specified by RepoSource. # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or # resolved from the specified branch or tag. + # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. class Build include Google::Apis::Core::Hashable @@ -210,6 +211,7 @@ module Google # - $TAG_NAME: the tag name specified by RepoSource. # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or # resolved from the specified branch or tag. + # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Corresponds to the JSON property `build` # @return [Google::Apis::CloudbuildV1::Build] attr_accessor :build @@ -372,6 +374,7 @@ module Google # - $TAG_NAME: the tag name specified by RepoSource. # - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or # resolved from the specified branch or tag. + # - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Corresponds to the JSON property `build` # @return [Google::Apis::CloudbuildV1::Build] attr_accessor :build diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index a75c5943f..eeaaea9d1 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20170901' + REVISION = '20170908' # 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/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index 93d446a4d..c62d30dd1 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -328,6 +328,11 @@ module Google # @return [String] attr_accessor :logging_service + # MaintenancePolicy defines the maintenance policy to be used for the cluster. + # Corresponds to the JSON property `maintenancePolicy` + # @return [Google::Apis::ContainerV1beta1::MaintenancePolicy] + attr_accessor :maintenance_policy + # The authentication information for accessing the master endpoint. # Authentication can be done using HTTP basic auth or using client # certificates. @@ -457,6 +462,7 @@ module Google @location = args[:location] if args.key?(:location) @locations = args[:locations] if args.key?(:locations) @logging_service = args[:logging_service] if args.key?(:logging_service) + @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) @master_auth = args[:master_auth] if args.key?(:master_auth) @master_authorized_networks_config = args[:master_authorized_networks_config] if args.key?(:master_authorized_networks_config) @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) @@ -708,6 +714,33 @@ module Google end end + # Time window specified for daily maintenance operations. + class DailyMaintenanceWindow + include Google::Apis::Core::Hashable + + # [Output only] Duration of the time window, automatically chosen to be + # smallest possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Time within the maintenance window to start the maintenance operations. + # It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + # A generic empty message that you can re-use to avoid defining duplicated # empty messages in your APIs. A typical example is to use it as the request # or the response type of an API method. For instance: @@ -989,6 +1022,44 @@ module Google end end + # MaintenancePolicy defines the maintenance policy to be used for the cluster. + class MaintenancePolicy + include Google::Apis::Core::Hashable + + # MaintenanceWindow defines the maintenance window to be used for the cluster. + # Corresponds to the JSON property `window` + # @return [Google::Apis::ContainerV1beta1::MaintenanceWindow] + attr_accessor :window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @window = args[:window] if args.key?(:window) + end + end + + # MaintenanceWindow defines the maintenance window to be used for the cluster. + class MaintenanceWindow + include Google::Apis::Core::Hashable + + # Time window specified for daily maintenance operations. + # Corresponds to the JSON property `dailyMaintenanceWindow` + # @return [Google::Apis::ContainerV1beta1::DailyMaintenanceWindow] + attr_accessor :daily_maintenance_window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_maintenance_window = args[:daily_maintenance_window] if args.key?(:daily_maintenance_window) + end + end + # The authentication information for accessing the master endpoint. # Authentication can be done using HTTP basic auth or using client # certificates. @@ -1740,6 +1811,54 @@ module Google end end + # SetMaintenancePolicyRequest sets the maintenance policy for a cluster. + class SetMaintenancePolicyRequest + include Google::Apis::Core::Hashable + + # The name of the cluster to update. + # Corresponds to the JSON property `clusterId` + # @return [String] + attr_accessor :cluster_id + + # MaintenancePolicy defines the maintenance policy to be used for the cluster. + # Corresponds to the JSON property `maintenancePolicy` + # @return [Google::Apis::ContainerV1beta1::MaintenancePolicy] + attr_accessor :maintenance_policy + + # The name (project, location, cluster id) of the cluster to set maintenance + # policy. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # 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) + @cluster_id = args[:cluster_id] if args.key?(:cluster_id) + @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @zone = args[:zone] if args.key?(:zone) + end + end + # SetMasterAuthRequest updates the admin password of a cluster. class SetMasterAuthRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index c7e036b9c..dc61606a1 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DailyMaintenanceWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -136,6 +142,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class MaintenancePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MaintenanceWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MasterAuth class Representation < Google::Apis::Core::JsonRepresentation; end @@ -214,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SetMaintenancePolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetMasterAuthRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -319,6 +343,8 @@ module Google property :location, as: 'location' collection :locations, as: 'locations' property :logging_service, as: 'loggingService' + property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1beta1::MaintenancePolicy, decorator: Google::Apis::ContainerV1beta1::MaintenancePolicy::Representation + property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1beta1::MasterAuth, decorator: Google::Apis::ContainerV1beta1::MasterAuth::Representation property :master_authorized_networks_config, as: 'masterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1beta1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1beta1::MasterAuthorizedNetworksConfig::Representation @@ -393,6 +419,14 @@ module Google end end + class DailyMaintenanceWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :start_time, as: 'startTime' + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -463,6 +497,22 @@ module Google end end + class MaintenancePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :window, as: 'window', class: Google::Apis::ContainerV1beta1::MaintenanceWindow, decorator: Google::Apis::ContainerV1beta1::MaintenanceWindow::Representation + + end + end + + class MaintenanceWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_maintenance_window, as: 'dailyMaintenanceWindow', class: Google::Apis::ContainerV1beta1::DailyMaintenanceWindow, decorator: Google::Apis::ContainerV1beta1::DailyMaintenanceWindow::Representation + + end + end + class MasterAuth # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -623,6 +673,18 @@ module Google end end + class SetMaintenancePolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_id, as: 'clusterId' + property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1beta1::MaintenancePolicy, decorator: Google::Apis::ContainerV1beta1::MaintenancePolicy::Representation + + property :name, as: 'name' + property :project_id, as: 'projectId' + property :zone, as: 'zone' + end + end + class SetMasterAuthRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/container_v1beta1/service.rb b/generated/google/apis/container_v1beta1/service.rb index 280cced92..65a639bad 100644 --- a/generated/google/apis/container_v1beta1/service.rb +++ b/generated/google/apis/container_v1beta1/service.rb @@ -343,6 +343,41 @@ module Google execute_or_queue_command(command, &block) end + # Sets the maintenance policy for a cluster. + # @param [String] name + # The name (project, location, cluster id) of the cluster to set maintenance + # policy. + # Specified in the format 'projects/*/locations/*/clusters/*'. + # @param [Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1beta1::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 set_project_location_cluster_maintenance_policy(name, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:setMaintenancePolicy', options) + command.request_representation = Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest::Representation + command.request_object = set_maintenance_policy_request_object + command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation + command.response_class = Google::Apis::ContainerV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Used to set master auth materials. Currently supports :- # Changing the admin password of a specific cluster. # This can be either via password generation or explicitly set. @@ -1258,6 +1293,48 @@ module Google execute_or_queue_command(command, &block) end + # Sets the maintenance policy for a cluster. + # @param [String] project_id + # The Google Developers Console [project ID or project + # number](https://support.google.com/cloud/answer/6158840). + # @param [String] zone + # The name of the Google Compute Engine + # [zone](/compute/docs/zones#available) in which the cluster + # resides. + # @param [String] cluster_id + # The name of the cluster to update. + # @param [Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest] set_maintenance_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContainerV1beta1::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 set_project_zone_cluster_maintenance_policy(project_id, zone, cluster_id, set_maintenance_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy', options) + command.request_representation = Google::Apis::ContainerV1beta1::SetMaintenancePolicyRequest::Representation + command.request_object = set_maintenance_policy_request_object + command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation + command.response_class = Google::Apis::ContainerV1beta1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.params['zone'] = zone unless zone.nil? + command.params['clusterId'] = cluster_id unless cluster_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Used to set master auth materials. Currently supports :- # Changing the admin password of a specific cluster. # This can be either via password generation or explicitly set. diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index 514e1ff1a..bc3f61a14 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '20170907' + REVISION = '20170914' # 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/deploymentmanager_alpha/classes.rb b/generated/google/apis/deploymentmanager_alpha/classes.rb index b8fbc92d5..d19cd08ec 100644 --- a/generated/google/apis/deploymentmanager_alpha/classes.rb +++ b/generated/google/apis/deploymentmanager_alpha/classes.rb @@ -228,12 +228,12 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the composite type was created, in RFC3339 text + # Output only. Timestamp when the composite type was created, in RFC3339 text # format. # Corresponds to the JSON property `insertTime` # @return [String] @@ -258,7 +258,7 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation - # [Output Only] Self link for the type provider. + # Output only. Self link for the type provider. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -320,7 +320,7 @@ module Google class CompositeTypesListResponse include Google::Apis::Core::Hashable - # [Output Only] A list of resource composite types supported by Deployment + # Output only. A list of resource composite types supported by Deployment # Manager. # Corresponds to the JSON property `compositeTypes` # @return [Array] @@ -504,13 +504,13 @@ module Google # @return [String] attr_accessor :fingerprint - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the deployment was created, in RFC3339 text - # format . + # Output only. Timestamp when the deployment was created, in RFC3339 text format + # . # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time @@ -524,7 +524,7 @@ module Google # @return [Array] attr_accessor :labels - # [Output Only] URL of the manifest representing the last manifest that was + # Output only. URL of the manifest representing the last manifest that was # successfully deployed. # Corresponds to the JSON property `manifest` # @return [String] @@ -545,13 +545,12 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation - # api-linter: output-only-format=disabled [Output Only] Map of outputs from the - # last manifest that deployed successfully. + # Output only. Map of outputs from the last manifest that deployed successfully. # Corresponds to the JSON property `outputs` # @return [Array] attr_accessor :outputs - # [Output Only] Self link for the deployment. + # Output only. Self link for the deployment. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -641,13 +640,13 @@ module Google class DeploymentUpdate include Google::Apis::Core::Hashable - # [Output Only] An optional user-provided description of the deployment after - # the current update has been applied. + # Output only. An optional user-provided description of the deployment after the + # current update has been applied. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # [Output Only] Map of labels; provided by the client when the resource is + # Output only. Map of labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 # characters long and must conform to the following regular expression: [a-z]([- # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and @@ -656,8 +655,8 @@ module Google # @return [Array] attr_accessor :labels - # [Output Only] URL of the manifest representing the update configuration of - # this deployment. + # Output only. URL of the manifest representing the update configuration of this + # deployment. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest @@ -732,12 +731,12 @@ module Google class DeploymentsListResponse include Google::Apis::Core::Hashable - # [Output Only] The deployments contained in this response. + # Output only. The deployments contained in this response. # Corresponds to the JSON property `deployments` # @return [Array] attr_accessor :deployments - # [Output Only] A token used to continue a truncated list request. + # Output only. A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1026,38 +1025,39 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::ConfigFile] attr_accessor :config - # [Output Only] The fully-expanded configuration file, including any templates + # Output only. The fully-expanded configuration file, including any templates # and references. # Corresponds to the JSON property `expandedConfig` # @return [String] attr_accessor :expanded_config - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] The imported files for this manifest. + # Output only. The imported files for this manifest. # Corresponds to the JSON property `imports` # @return [Array] attr_accessor :imports - # [Output Only] Timestamp when the manifest was created, in RFC3339 text format. + # Output only. Timestamp when the manifest was created, in RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] The YAML layout for this manifest. + # Output only. The YAML layout for this manifest. # Corresponds to the JSON property `layout` # @return [String] attr_accessor :layout - # [Output Only] The name of the manifest. + # Output only. + # The name of the manifest. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] Self link for the manifest. + # Output only. Self link for the manifest. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1084,12 +1084,12 @@ module Google class ManifestsListResponse include Google::Apis::Core::Hashable - # [Output Only] Manifests contained in this list response. + # Output only. Manifests contained in this list response. # Corresponds to the JSON property `manifests` # @return [Array] attr_accessor :manifests - # [Output Only] A token used to continue a truncated list request. + # Output only. A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1399,12 +1399,12 @@ module Google class OperationsListResponse include Google::Apis::Core::Hashable - # [Output Only] A token used to continue a truncated list request. + # 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] Operations contained in this list response. + # Output only. Operations contained in this list response. # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations @@ -1540,41 +1540,41 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::ResourceAccessControl] attr_accessor :access_control - # [Output Only] The evaluated properties of the resource with references - # expanded. Returned as serialized YAML. + # Output only. The evaluated properties of the resource with references expanded. + # Returned as serialized YAML. # Corresponds to the JSON property `finalProperties` # @return [String] attr_accessor :final_properties - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the resource was created or acquired, in RFC3339 + # Output only. Timestamp when the resource was created or acquired, in RFC3339 # text format . # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] URL of the manifest representing the current configuration of + # Output only. URL of the manifest representing the current configuration of # this resource. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest - # [Output Only] The name of the resource as it appears in the YAML config. + # Output only. The name of the resource as it appears in the YAML config. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] The current properties of the resource before any references - # have been filled in. Returned as serialized YAML. + # Output only. The current properties of the resource before any references have + # been filled in. Returned as serialized YAML. # Corresponds to the JSON property `properties` # @return [String] attr_accessor :properties - # [Output Only] The type of the resource, for example compute.v1.instance, or + # Output only. The type of the resource, for example compute.v1.instance, or # cloudfunctions.v1beta1.function. # Corresponds to the JSON property `type` # @return [String] @@ -1585,17 +1585,17 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::ResourceUpdate] attr_accessor :update - # [Output Only] Timestamp when the resource was updated, in RFC3339 text format . + # Output only. Timestamp when the resource was updated, in RFC3339 text format . # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # [Output Only] The URL of the actual resource. + # Output only. The URL of the actual resource. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url - # [Output Only] If warning messages are generated during processing of this + # Output only. If warning messages are generated during processing of this # resource, this field will be populated. # Corresponds to the JSON property `warnings` # @return [Array] @@ -1714,41 +1714,41 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::ResourceAccessControl] attr_accessor :access_control - # [Output Only] If errors are generated during update of the resource, this - # field will be populated. + # Output only. If errors are generated during update of the resource, this field + # will be populated. # Corresponds to the JSON property `error` # @return [Google::Apis::DeploymentmanagerAlpha::ResourceUpdate::Error] attr_accessor :error - # [Output Only] The expanded properties of the resource with reference values + # Output only. The expanded properties of the resource with reference values # expanded. Returned as serialized YAML. # Corresponds to the JSON property `finalProperties` # @return [String] attr_accessor :final_properties - # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent - # [Output Only] URL of the manifest representing the update configuration of - # this resource. + # Output only. URL of the manifest representing the update configuration of this + # resource. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest - # [Output Only] The set of updated properties for this resource, before + # Output only. The set of updated properties for this resource, before # references are expanded. Returned as serialized YAML. # Corresponds to the JSON property `properties` # @return [String] attr_accessor :properties - # [Output Only] The state of the resource. + # Output only. The state of the resource. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state - # [Output Only] If warning messages are generated during processing of this + # Output only. If warning messages are generated during processing of this # resource, this field will be populated. # Corresponds to the JSON property `warnings` # @return [Array] @@ -1770,8 +1770,8 @@ module Google @warnings = args[:warnings] if args.key?(:warnings) end - # [Output Only] If errors are generated during update of the resource, this - # field will be populated. + # Output only. If errors are generated during update of the resource, this field + # will be populated. class Error include Google::Apis::Core::Hashable @@ -2111,12 +2111,12 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the type was created, in RFC3339 text format. + # Output only. Timestamp when the type was created, in RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time @@ -2140,7 +2140,7 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation - # [Output Only] Self link for the type. + # Output only. Self link for the type. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2178,7 +2178,7 @@ module Google # @return [String] attr_accessor :documentation_link - # [Output Only] Type of the output. Always deploymentManager#TypeInfo for + # Output only. Type of the output. Always deploymentManager#TypeInfo for # TypeInfo. # Corresponds to the JSON property `kind` # @return [String] @@ -2194,7 +2194,7 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::TypeInfoSchemaInfo] attr_accessor :schema - # [Output Only] Server-defined URL for the resource. + # Output only. Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2299,12 +2299,12 @@ module Google # @return [String] attr_accessor :descriptor_url - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the type provider was created, in RFC3339 text + # Output only. Timestamp when the type provider was created, in RFC3339 text # format. # Corresponds to the JSON property `insertTime` # @return [String] @@ -2334,7 +2334,7 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::Options] attr_accessor :options - # [Output Only] Self link for the type provider. + # Output only. Self link for the type provider. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2393,8 +2393,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource type providers supported by Deployment - # Manager. + # Output only. A list of resource type providers supported by Deployment Manager. # Corresponds to the JSON property `typeProviders` # @return [Array] attr_accessor :type_providers @@ -2419,7 +2418,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource type info. + # Output only. A list of resource type info. # Corresponds to the JSON property `types` # @return [Array] attr_accessor :types @@ -2444,7 +2443,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource types supported by Deployment Manager. + # Output only. A list of resource types supported by Deployment Manager. # Corresponds to the JSON property `types` # @return [Array] attr_accessor :types diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 7b3b799aa..42f09de48 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20170907' + REVISION = '20170914' # 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/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index 7418345fd..ce39d4ae0 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -258,13 +258,13 @@ module Google # @return [String] attr_accessor :fingerprint - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the deployment was created, in RFC3339 text - # format . + # Output only. Timestamp when the deployment was created, in RFC3339 text format + # . # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time @@ -278,7 +278,7 @@ module Google # @return [Array] attr_accessor :labels - # [Output Only] URL of the manifest representing the last manifest that was + # Output only. URL of the manifest representing the last manifest that was # successfully deployed. # Corresponds to the JSON property `manifest` # @return [String] @@ -299,7 +299,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2::Operation] attr_accessor :operation - # [Output Only] Self link for the deployment. + # Output only. Self link for the deployment. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -363,13 +363,13 @@ module Google class DeploymentUpdate include Google::Apis::Core::Hashable - # [Output Only] An optional user-provided description of the deployment after - # the current update has been applied. + # Output only. An optional user-provided description of the deployment after the + # current update has been applied. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # [Output Only] Map of labels; provided by the client when the resource is + # Output only. Map of labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 # characters long and must conform to the following regular expression: [a-z]([- # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and @@ -378,8 +378,8 @@ module Google # @return [Array] attr_accessor :labels - # [Output Only] URL of the manifest representing the update configuration of - # this deployment. + # Output only. URL of the manifest representing the update configuration of this + # deployment. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest @@ -454,12 +454,12 @@ module Google class ListDeploymentsResponse include Google::Apis::Core::Hashable - # [Output Only] The deployments contained in this response. + # Output only. The deployments contained in this response. # Corresponds to the JSON property `deployments` # @return [Array] attr_accessor :deployments - # [Output Only] A token used to continue a truncated list request. + # Output only. A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -710,38 +710,39 @@ module Google # @return [Google::Apis::DeploymentmanagerV2::ConfigFile] attr_accessor :config - # [Output Only] The fully-expanded configuration file, including any templates + # Output only. The fully-expanded configuration file, including any templates # and references. # Corresponds to the JSON property `expandedConfig` # @return [String] attr_accessor :expanded_config - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] The imported files for this manifest. + # Output only. The imported files for this manifest. # Corresponds to the JSON property `imports` # @return [Array] attr_accessor :imports - # [Output Only] Timestamp when the manifest was created, in RFC3339 text format. + # Output only. Timestamp when the manifest was created, in RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] The YAML layout for this manifest. + # Output only. The YAML layout for this manifest. # Corresponds to the JSON property `layout` # @return [String] attr_accessor :layout - # [Output Only] The name of the manifest. + # Output only. + # The name of the manifest. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] Self link for the manifest. + # Output only. Self link for the manifest. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -768,12 +769,12 @@ module Google class ListManifestsResponse include Google::Apis::Core::Hashable - # [Output Only] Manifests contained in this list response. + # Output only. Manifests contained in this list response. # Corresponds to the JSON property `manifests` # @return [Array] attr_accessor :manifests - # [Output Only] A token used to continue a truncated list request. + # Output only. A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1083,12 +1084,12 @@ module Google class ListOperationsResponse include Google::Apis::Core::Hashable - # [Output Only] A token used to continue a truncated list request. + # 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] Operations contained in this list response. + # Output only. Operations contained in this list response. # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations @@ -1191,41 +1192,41 @@ module Google # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl] attr_accessor :access_control - # [Output Only] The evaluated properties of the resource with references - # expanded. Returned as serialized YAML. + # Output only. The evaluated properties of the resource with references expanded. + # Returned as serialized YAML. # Corresponds to the JSON property `finalProperties` # @return [String] attr_accessor :final_properties - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the resource was created or acquired, in RFC3339 + # Output only. Timestamp when the resource was created or acquired, in RFC3339 # text format . # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] URL of the manifest representing the current configuration of + # Output only. URL of the manifest representing the current configuration of # this resource. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest - # [Output Only] The name of the resource as it appears in the YAML config. + # Output only. The name of the resource as it appears in the YAML config. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] The current properties of the resource before any references - # have been filled in. Returned as serialized YAML. + # Output only. The current properties of the resource before any references have + # been filled in. Returned as serialized YAML. # Corresponds to the JSON property `properties` # @return [String] attr_accessor :properties - # [Output Only] The type of the resource, for example compute.v1.instance, or + # Output only. The type of the resource, for example compute.v1.instance, or # cloudfunctions.v1beta1.function. # Corresponds to the JSON property `type` # @return [String] @@ -1236,17 +1237,17 @@ module Google # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate] attr_accessor :update - # [Output Only] Timestamp when the resource was updated, in RFC3339 text format . + # Output only. Timestamp when the resource was updated, in RFC3339 text format . # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # [Output Only] The URL of the actual resource. + # Output only. The URL of the actual resource. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url - # [Output Only] If warning messages are generated during processing of this + # Output only. If warning messages are generated during processing of this # resource, this field will be populated. # Corresponds to the JSON property `warnings` # @return [Array] @@ -1365,41 +1366,41 @@ module Google # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl] attr_accessor :access_control - # [Output Only] If errors are generated during update of the resource, this - # field will be populated. + # Output only. If errors are generated during update of the resource, this field + # will be populated. # Corresponds to the JSON property `error` # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error] attr_accessor :error - # [Output Only] The expanded properties of the resource with reference values + # Output only. The expanded properties of the resource with reference values # expanded. Returned as serialized YAML. # Corresponds to the JSON property `finalProperties` # @return [String] attr_accessor :final_properties - # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent - # [Output Only] URL of the manifest representing the update configuration of - # this resource. + # Output only. URL of the manifest representing the update configuration of this + # resource. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest - # [Output Only] The set of updated properties for this resource, before + # Output only. The set of updated properties for this resource, before # references are expanded. Returned as serialized YAML. # Corresponds to the JSON property `properties` # @return [String] attr_accessor :properties - # [Output Only] The state of the resource. + # Output only. The state of the resource. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state - # [Output Only] If warning messages are generated during processing of this + # Output only. If warning messages are generated during processing of this # resource, this field will be populated. # Corresponds to the JSON property `warnings` # @return [Array] @@ -1421,8 +1422,8 @@ module Google @warnings = args[:warnings] if args.key?(:warnings) end - # [Output Only] If errors are generated during update of the resource, this - # field will be populated. + # Output only. If errors are generated during update of the resource, this field + # will be populated. class Error include Google::Apis::Core::Hashable @@ -1694,12 +1695,12 @@ module Google class Type include Google::Apis::Core::Hashable - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the type was created, in RFC3339 text format. + # Output only. Timestamp when the type was created, in RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time @@ -1714,7 +1715,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2::Operation] attr_accessor :operation - # [Output Only] Self link for the type. + # Output only. Self link for the type. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1742,7 +1743,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource types supported by Deployment Manager. + # Output only. A list of resource types supported by Deployment Manager. # Corresponds to the JSON property `types` # @return [Array] attr_accessor :types diff --git a/generated/google/apis/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index 18f75ed62..2f4b9bc02 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '20170907' + REVISION = '20170914' # 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/deploymentmanager_v2beta/classes.rb b/generated/google/apis/deploymentmanager_v2beta/classes.rb index 441e2a349..7df90bdd2 100644 --- a/generated/google/apis/deploymentmanager_v2beta/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta/classes.rb @@ -266,12 +266,12 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the composite type was created, in RFC3339 text + # Output only. Timestamp when the composite type was created, in RFC3339 text # format. # Corresponds to the JSON property `insertTime` # @return [String] @@ -296,7 +296,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation - # [Output Only] Self link for the type provider. + # Output only. Self link for the type provider. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -358,7 +358,7 @@ module Google class CompositeTypesListResponse include Google::Apis::Core::Hashable - # [Output Only] A list of resource composite types supported by Deployment + # Output only. A list of resource composite types supported by Deployment # Manager. # Corresponds to the JSON property `compositeTypes` # @return [Array] @@ -504,13 +504,13 @@ module Google # @return [String] attr_accessor :fingerprint - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the deployment was created, in RFC3339 text - # format . + # Output only. Timestamp when the deployment was created, in RFC3339 text format + # . # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time @@ -524,7 +524,7 @@ module Google # @return [Array] attr_accessor :labels - # [Output Only] URL of the manifest representing the last manifest that was + # Output only. URL of the manifest representing the last manifest that was # successfully deployed. # Corresponds to the JSON property `manifest` # @return [String] @@ -545,7 +545,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation - # [Output Only] Self link for the deployment. + # Output only. Self link for the deployment. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -609,13 +609,13 @@ module Google class DeploymentUpdate include Google::Apis::Core::Hashable - # [Output Only] An optional user-provided description of the deployment after - # the current update has been applied. + # Output only. An optional user-provided description of the deployment after the + # current update has been applied. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # [Output Only] Map of labels; provided by the client when the resource is + # Output only. Map of labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 # characters long and must conform to the following regular expression: [a-z]([- # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and @@ -624,8 +624,8 @@ module Google # @return [Array] attr_accessor :labels - # [Output Only] URL of the manifest representing the update configuration of - # this deployment. + # Output only. URL of the manifest representing the update configuration of this + # deployment. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest @@ -700,12 +700,12 @@ module Google class DeploymentsListResponse include Google::Apis::Core::Hashable - # [Output Only] The deployments contained in this response. + # Output only. The deployments contained in this response. # Corresponds to the JSON property `deployments` # @return [Array] attr_accessor :deployments - # [Output Only] A token used to continue a truncated list request. + # Output only. A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -994,38 +994,39 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::ConfigFile] attr_accessor :config - # [Output Only] The fully-expanded configuration file, including any templates + # Output only. The fully-expanded configuration file, including any templates # and references. # Corresponds to the JSON property `expandedConfig` # @return [String] attr_accessor :expanded_config - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] The imported files for this manifest. + # Output only. The imported files for this manifest. # Corresponds to the JSON property `imports` # @return [Array] attr_accessor :imports - # [Output Only] Timestamp when the manifest was created, in RFC3339 text format. + # Output only. Timestamp when the manifest was created, in RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] The YAML layout for this manifest. + # Output only. The YAML layout for this manifest. # Corresponds to the JSON property `layout` # @return [String] attr_accessor :layout - # [Output Only] The name of the manifest. + # Output only. + # The name of the manifest. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] Self link for the manifest. + # Output only. Self link for the manifest. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -1052,12 +1053,12 @@ module Google class ManifestsListResponse include Google::Apis::Core::Hashable - # [Output Only] Manifests contained in this list response. + # Output only. Manifests contained in this list response. # Corresponds to the JSON property `manifests` # @return [Array] attr_accessor :manifests - # [Output Only] A token used to continue a truncated list request. + # Output only. A token used to continue a truncated list request. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1367,12 +1368,12 @@ module Google class OperationsListResponse include Google::Apis::Core::Hashable - # [Output Only] A token used to continue a truncated list request. + # 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] Operations contained in this list response. + # Output only. Operations contained in this list response. # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations @@ -1512,41 +1513,41 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::ResourceAccessControl] attr_accessor :access_control - # [Output Only] The evaluated properties of the resource with references - # expanded. Returned as serialized YAML. + # Output only. The evaluated properties of the resource with references expanded. + # Returned as serialized YAML. # Corresponds to the JSON property `finalProperties` # @return [String] attr_accessor :final_properties - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the resource was created or acquired, in RFC3339 + # Output only. Timestamp when the resource was created or acquired, in RFC3339 # text format . # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time - # [Output Only] URL of the manifest representing the current configuration of + # Output only. URL of the manifest representing the current configuration of # this resource. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest - # [Output Only] The name of the resource as it appears in the YAML config. + # Output only. The name of the resource as it appears in the YAML config. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] The current properties of the resource before any references - # have been filled in. Returned as serialized YAML. + # Output only. The current properties of the resource before any references have + # been filled in. Returned as serialized YAML. # Corresponds to the JSON property `properties` # @return [String] attr_accessor :properties - # [Output Only] The type of the resource, for example compute.v1.instance, or + # Output only. The type of the resource, for example compute.v1.instance, or # cloudfunctions.v1beta1.function. # Corresponds to the JSON property `type` # @return [String] @@ -1557,17 +1558,17 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::ResourceUpdate] attr_accessor :update - # [Output Only] Timestamp when the resource was updated, in RFC3339 text format . + # Output only. Timestamp when the resource was updated, in RFC3339 text format . # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # [Output Only] The URL of the actual resource. + # Output only. The URL of the actual resource. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url - # [Output Only] If warning messages are generated during processing of this + # Output only. If warning messages are generated during processing of this # resource, this field will be populated. # Corresponds to the JSON property `warnings` # @return [Array] @@ -1686,41 +1687,41 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::ResourceAccessControl] attr_accessor :access_control - # [Output Only] If errors are generated during update of the resource, this - # field will be populated. + # Output only. If errors are generated during update of the resource, this field + # will be populated. # Corresponds to the JSON property `error` # @return [Google::Apis::DeploymentmanagerV2beta::ResourceUpdate::Error] attr_accessor :error - # [Output Only] The expanded properties of the resource with reference values + # Output only. The expanded properties of the resource with reference values # expanded. Returned as serialized YAML. # Corresponds to the JSON property `finalProperties` # @return [String] attr_accessor :final_properties - # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent - # [Output Only] URL of the manifest representing the update configuration of - # this resource. + # Output only. URL of the manifest representing the update configuration of this + # resource. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest - # [Output Only] The set of updated properties for this resource, before + # Output only. The set of updated properties for this resource, before # references are expanded. Returned as serialized YAML. # Corresponds to the JSON property `properties` # @return [String] attr_accessor :properties - # [Output Only] The state of the resource. + # Output only. The state of the resource. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state - # [Output Only] If warning messages are generated during processing of this + # Output only. If warning messages are generated during processing of this # resource, this field will be populated. # Corresponds to the JSON property `warnings` # @return [Array] @@ -1742,8 +1743,8 @@ module Google @warnings = args[:warnings] if args.key?(:warnings) end - # [Output Only] If errors are generated during update of the resource, this - # field will be populated. + # Output only. If errors are generated during update of the resource, this field + # will be populated. class Error include Google::Apis::Core::Hashable @@ -2083,12 +2084,12 @@ module Google # @return [String] attr_accessor :description - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the type was created, in RFC3339 text format. + # Output only. Timestamp when the type was created, in RFC3339 text format. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time @@ -2112,7 +2113,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation - # [Output Only] Self link for the type. + # Output only. Self link for the type. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2150,7 +2151,7 @@ module Google # @return [String] attr_accessor :documentation_link - # [Output Only] Type of the output. Always deploymentManager#TypeInfo for + # Output only. Type of the output. Always deploymentManager#TypeInfo for # TypeInfo. # Corresponds to the JSON property `kind` # @return [String] @@ -2166,7 +2167,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::TypeInfoSchemaInfo] attr_accessor :schema - # [Output Only] Server-defined URL for the resource. + # Output only. Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2271,12 +2272,12 @@ module Google # @return [String] attr_accessor :descriptor_url - # [Output Only] Unique identifier for the resource; defined by the server. + # Output only. Unique identifier for the resource; defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id - # [Output Only] Timestamp when the type provider was created, in RFC3339 text + # Output only. Timestamp when the type provider was created, in RFC3339 text # format. # Corresponds to the JSON property `insertTime` # @return [String] @@ -2306,7 +2307,7 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::Options] attr_accessor :options - # [Output Only] Self link for the type provider. + # Output only. Self link for the type provider. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link @@ -2365,8 +2366,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource type providers supported by Deployment - # Manager. + # Output only. A list of resource type providers supported by Deployment Manager. # Corresponds to the JSON property `typeProviders` # @return [Array] attr_accessor :type_providers @@ -2391,7 +2391,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource type info. + # Output only. A list of resource type info. # Corresponds to the JSON property `types` # @return [Array] attr_accessor :types @@ -2416,7 +2416,7 @@ module Google # @return [String] attr_accessor :next_page_token - # [Output Only] A list of resource types supported by Deployment Manager. + # Output only. A list of resource types supported by Deployment Manager. # Corresponds to the JSON property `types` # @return [Array] attr_accessor :types diff --git a/generated/google/apis/dlp_v2beta1.rb b/generated/google/apis/dlp_v2beta1.rb index 1d1581dff..f9b25013e 100644 --- a/generated/google/apis/dlp_v2beta1.rb +++ b/generated/google/apis/dlp_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2beta1 VERSION = 'V2beta1' - REVISION = '20170913' + REVISION = '20170918' # 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/classes.rb b/generated/google/apis/dlp_v2beta1/classes.rb index ba8867520..878773fee 100644 --- a/generated/google/apis/dlp_v2beta1/classes.rb +++ b/generated/google/apis/dlp_v2beta1/classes.rb @@ -116,19 +116,22 @@ module Google # @return [Google::Apis::DlpV2beta1::GoogleRpcStatus] attr_accessor :error - # This field will contain an InspectOperationMetadata object. This will always - # be returned with the Operation. + # This field will contain an InspectOperationMetadata object for `inspect. + # operations.create` or a RiskAnalysisOperationMetadata object for `dataSource. + # analyze`. This will always be returned with the Operation. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata - # The server-assigned name, The `name` should have the format of `inspect/ + # The server-assigned name. The `name` should have the format of `inspect/ # operations/`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # This field will contain an InspectOperationResult object. + # This field will contain an InspectOperationResult object for `inspect. + # operations.create` or a RiskAnalysisOperationResult object for `dataSource. + # analyze`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -320,7 +323,7 @@ module Google end end - # + # Histogram bucket of value frequencies in the column. class GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket include Google::Apis::Core::Hashable @@ -722,7 +725,6 @@ module Google # Pseudonymization method that generates surrogates via cryptographic hashing. # Uses SHA-256. - # The key size must be either 32 or 64 bytes. # Outputs a 32 byte digest as an uppercase hex string # (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). # Currently, only string and integer values can be hashed. @@ -1322,21 +1324,21 @@ module Google end end - # Info type description. + # Description of the information type (infoType). class GooglePrivacyDlpV2beta1InfoTypeDescription include Google::Apis::Core::Hashable - # List of categories this info type belongs to. + # List of categories this infoType belongs to. # Corresponds to the JSON property `categories` # @return [Array] attr_accessor :categories - # Human readable form of the info type name. + # Human readable form of the infoType name. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Internal name of the info type. + # Internal name of the infoType. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1701,7 +1703,7 @@ module Google end end - # The set of columns' values that share the same ldiversity value + # The set of columns' values that share the same k-anonymity value. class GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass include Google::Apis::Core::Hashable @@ -1729,7 +1731,7 @@ module Google end end - # + # Histogram bucket of equivalence class sizes in the table. class GooglePrivacyDlpV2beta1KAnonymityHistogramBucket include Google::Apis::Core::Hashable @@ -1900,7 +1902,7 @@ module Google end end - # The set of columns' values that share the same ldiversity value. + # The set of columns' values that share the same l-diversity value. class GooglePrivacyDlpV2beta1LDiversityEquivalenceClass include Google::Apis::Core::Hashable @@ -1938,7 +1940,7 @@ module Google end end - # + # Histogram bucket of sensitive value frequencies in the table. class GooglePrivacyDlpV2beta1LDiversityHistogramBucket include Google::Apis::Core::Hashable @@ -2308,7 +2310,6 @@ module Google # Pseudonymization method that generates surrogates via cryptographic hashing. # Uses SHA-256. - # The key size must be either 32 or 64 bytes. # Outputs a 32 byte digest as an uppercase hex string # (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). # Currently, only string and integer values can be hashed. @@ -2710,7 +2711,10 @@ module Google end end - # Metadata returned within GetOperation for risk analysis. + # Metadata returned within the + # [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis. + # operations/get) + # for risk analysis. class GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata include Google::Apis::Core::Hashable @@ -2745,7 +2749,9 @@ module Google end end - # Result of a risk analysis operation request. + # Result of a risk analysis + # [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations) + # request. class GooglePrivacyDlpV2beta1RiskAnalysisOperationResult include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dlp_v2beta1/service.rb b/generated/google/apis/dlp_v2beta1/service.rb index 9a51702d4..44be090f4 100644 --- a/generated/google/apis/dlp_v2beta1/service.rb +++ b/generated/google/apis/dlp_v2beta1/service.rb @@ -173,8 +173,8 @@ module Google execute_or_queue_command(command, &block) end - # Cancels an operation. Use the get method to check whether the cancellation - # succeeded or whether the operation completed despite cancellation. + # Cancels an operation. Use the `inspect.operations.get` to check whether the + # cancellation succeeded or the operation completed despite cancellation. # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object @@ -300,13 +300,13 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the list of long running operations. + # Fetches the list of long running operations. # @param [String] name # The name of the operation's parent resource. # @param [String] filter - # This parameter supports filtering by done, ie done=true or done=false. + # Filters by `done`. That is, `done=true` or `done=false`. # @param [Fixnum] page_size - # The list page size. The max allowed value is 256 and default is 100. + # The list page size. The maximum allowed value is 256 and the default is 100. # @param [String] page_token # The standard list page token. # @param [String] fields @@ -389,8 +389,8 @@ module Google execute_or_queue_command(command, &block) end - # Cancels an operation. Use the get method to check whether the cancellation - # succeeded or whether the operation completed despite cancellation. + # Cancels an operation. Use the `inspect.operations.get` to check whether the + # cancellation succeeded or the operation completed despite cancellation. # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object @@ -485,13 +485,13 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the list of long running operations. + # Fetches the list of long running operations. # @param [String] name # The name of the operation's parent resource. # @param [String] filter - # This parameter supports filtering by done, ie done=true or done=false. + # Filters by `done`. That is, `done=true` or `done=false`. # @param [Fixnum] page_size - # The list page size. The max allowed value is 256 and default is 100. + # The list page size. The maximum allowed value is 256 and the default is 100. # @param [String] page_token # The standard list page token. # @param [String] fields diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 1ca8bd8e0..3247bb9bf 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -45,7 +45,7 @@ module Google # View and modify but not delete your email AUTH_GMAIL_MODIFY = 'https://www.googleapis.com/auth/gmail.modify' - # View your emails messages and settings + # View your email messages and settings AUTH_GMAIL_READONLY = 'https://www.googleapis.com/auth/gmail.readonly' # Send email on your behalf diff --git a/generated/google/apis/oslogin_v1beta.rb b/generated/google/apis/oslogin_v1beta.rb new file mode 100644 index 000000000..ae170d3dd --- /dev/null +++ b/generated/google/apis/oslogin_v1beta.rb @@ -0,0 +1,37 @@ +# 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/oslogin_v1beta/service.rb' +require 'google/apis/oslogin_v1beta/classes.rb' +require 'google/apis/oslogin_v1beta/representations.rb' + +module Google + module Apis + # Google Cloud OS Login API + # + # Manages OS login configuration for Directory API users. + # + # @see https://cloud.google.com/compute/docs/oslogin/rest/ + module OsloginV1beta + VERSION = 'V1beta' + REVISION = '20170918' + + # 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' + end + end +end diff --git a/generated/google/apis/oslogin_v1beta/classes.rb b/generated/google/apis/oslogin_v1beta/classes.rb new file mode 100644 index 000000000..5012f3b79 --- /dev/null +++ b/generated/google/apis/oslogin_v1beta/classes.rb @@ -0,0 +1,202 @@ +# 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 OsloginV1beta + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A response message for importing an SSH public key. + class ImportSshPublicKeyResponse + include Google::Apis::Core::Hashable + + # The user profile information used for logging in to a virtual machine on + # Google Compute Engine. + # Corresponds to the JSON property `loginProfile` + # @return [Google::Apis::OsloginV1beta::LoginProfile] + attr_accessor :login_profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @login_profile = args[:login_profile] if args.key?(:login_profile) + end + end + + # The user profile information used for logging in to a virtual machine on + # Google Compute Engine. + class LoginProfile + include Google::Apis::Core::Hashable + + # The primary email address that uniquely identifies the user. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of POSIX accounts associated with the user. + # Corresponds to the JSON property `posixAccounts` + # @return [Array] + attr_accessor :posix_accounts + + # A map from SSH public key fingerprint to the associated key object. + # Corresponds to the JSON property `sshPublicKeys` + # @return [Hash] + attr_accessor :ssh_public_keys + + # Indicates if the user is suspended. A suspended user cannot log in but + # their profile information is retained. + # Corresponds to the JSON property `suspended` + # @return [Boolean] + attr_accessor :suspended + alias_method :suspended?, :suspended + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts) + @ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys) + @suspended = args[:suspended] if args.key?(:suspended) + end + end + + # The POSIX account information associated with a Directory API User. + class PosixAccount + include Google::Apis::Core::Hashable + + # The GECOS (user information) entry for this account. + # Corresponds to the JSON property `gecos` + # @return [String] + attr_accessor :gecos + + # The default group ID. + # Corresponds to the JSON property `gid` + # @return [Fixnum] + attr_accessor :gid + + # The path to the home directory for this account. + # Corresponds to the JSON property `homeDirectory` + # @return [String] + attr_accessor :home_directory + + # Only one POSIX account can be marked as primary. + # Corresponds to the JSON property `primary` + # @return [Boolean] + attr_accessor :primary + alias_method :primary?, :primary + + # The path to the logic shell for this account. + # Corresponds to the JSON property `shell` + # @return [String] + attr_accessor :shell + + # System identifier for which account the username or uid applies to. + # By default, the empty value is used. + # Corresponds to the JSON property `systemId` + # @return [String] + attr_accessor :system_id + + # The user ID. + # Corresponds to the JSON property `uid` + # @return [Fixnum] + attr_accessor :uid + + # The username of the POSIX 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) + @primary = args[:primary] if args.key?(:primary) + @shell = args[:shell] if args.key?(:shell) + @system_id = args[:system_id] if args.key?(:system_id) + @uid = args[:uid] if args.key?(:uid) + @username = args[:username] if args.key?(:username) + end + end + + # The SSH public key information associated with a Directory API User. + class SshPublicKey + include Google::Apis::Core::Hashable + + # An expiration time in microseconds since epoch. + # Corresponds to the JSON property `expirationTimeUsec` + # @return [Fixnum] + attr_accessor :expiration_time_usec + + # The SHA-256 fingerprint of the SSH public key. + # Output only. + # 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) + @expiration_time_usec = args[:expiration_time_usec] if args.key?(:expiration_time_usec) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @key = args[:key] if args.key?(:key) + end + end + end + end +end diff --git a/generated/google/apis/oslogin_v1beta/representations.rb b/generated/google/apis/oslogin_v1beta/representations.rb new file mode 100644 index 000000000..b3d51fb83 --- /dev/null +++ b/generated/google/apis/oslogin_v1beta/representations.rb @@ -0,0 +1,105 @@ +# 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 OsloginV1beta + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImportSshPublicKeyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LoginProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PosixAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SshPublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ImportSshPublicKeyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :login_profile, as: 'loginProfile', class: Google::Apis::OsloginV1beta::LoginProfile, decorator: Google::Apis::OsloginV1beta::LoginProfile::Representation + + end + end + + class LoginProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :posix_accounts, as: 'posixAccounts', class: Google::Apis::OsloginV1beta::PosixAccount, decorator: Google::Apis::OsloginV1beta::PosixAccount::Representation + + hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1beta::SshPublicKey, decorator: Google::Apis::OsloginV1beta::SshPublicKey::Representation + + property :suspended, as: 'suspended' + end + end + + class PosixAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gecos, as: 'gecos' + property :gid, :numeric_string => true, as: 'gid' + property :home_directory, as: 'homeDirectory' + property :primary, as: 'primary' + property :shell, as: 'shell' + property :system_id, as: 'systemId' + property :uid, :numeric_string => true, as: 'uid' + property :username, as: 'username' + end + end + + class SshPublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :expiration_time_usec, :numeric_string => true, as: 'expirationTimeUsec' + property :fingerprint, as: 'fingerprint' + property :key, as: 'key' + end + end + end + end +end diff --git a/generated/google/apis/oslogin_v1beta/service.rb b/generated/google/apis/oslogin_v1beta/service.rb new file mode 100644 index 000000000..ce12e9897 --- /dev/null +++ b/generated/google/apis/oslogin_v1beta/service.rb @@ -0,0 +1,228 @@ +# 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 OsloginV1beta + # Google Cloud OS Login API + # + # Manages OS login configuration for Directory API users. + # + # @example + # require 'google/apis/oslogin_v1beta' + # + # Oslogin = Google::Apis::OsloginV1beta # Alias the module + # service = Oslogin::CloudOSLoginService.new + # + # @see https://cloud.google.com/compute/docs/oslogin/rest/ + class CloudOSLoginService < 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. + attr_accessor :quota_user + + def initialize + super('https://oslogin.googleapis.com/', '') + @batch_path = 'batch' + end + + # Retrieves the profile information used for logging in to a virtual machine + # on Google Compute Engine. + # @param [String] name + # The unique ID for the user in format `users/`user``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1beta::LoginProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1beta::LoginProfile] + # + # @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_login_profile(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta/{+name}/loginProfile', options) + command.response_representation = Google::Apis::OsloginV1beta::LoginProfile::Representation + command.response_class = Google::Apis::OsloginV1beta::LoginProfile + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Adds an SSH public key and returns the profile information. Default POSIX + # account information is set when no username and UID exist as part of the + # login profile. + # @param [String] parent + # The unique ID for the user in format `users/`user``. + # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse] + # + # @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 import_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}:importSshPublicKey', options) + command.request_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation + command.request_object = ssh_public_key_object + command.response_representation = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse::Representation + command.response_class = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an SSH public key. + # @param [String] name + # The fingerprint of the public key to update. Public keys are identified by + # their SHA-256 fingerprint. The fingerprint of the public key is in format + # `users/`user`/sshPublicKeys/`fingerprint``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1beta::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1beta::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta/{+name}', options) + command.response_representation = Google::Apis::OsloginV1beta::Empty::Representation + command.response_class = Google::Apis::OsloginV1beta::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves an SSH public key. + # @param [String] name + # The fingerprint of the public key to retrieve. Public keys are identified + # by their SHA-256 fingerprint. The fingerprint of the public key is in + # format `users/`user`/sshPublicKeys/`fingerprint``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1beta::SshPublicKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1beta::SshPublicKey] + # + # @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_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta/{+name}', options) + command.response_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation + command.response_class = Google::Apis::OsloginV1beta::SshPublicKey + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates an SSH public key and returns the profile information. This method + # supports patch semantics. + # @param [String] name + # The fingerprint of the public key to update. Public keys are identified by + # their SHA-256 fingerprint. The fingerprint of the public key is in format + # `users/`user`/sshPublicKeys/`fingerprint``. + # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object + # @param [String] update_mask + # Mask to control which fields get updated. Updates all if not present. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsloginV1beta::SshPublicKey] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsloginV1beta::SshPublicKey] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_user_ssh_public_key(name, ssh_public_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta/{+name}', options) + command.request_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation + command.request_object = ssh_public_key_object + command.response_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation + command.response_class = Google::Apis::OsloginV1beta::SshPublicKey + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index 722289126..5fa923a2a 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20170825' + REVISION = '20170914' # 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/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index fb8dd9902..106c27c81 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -631,6 +631,25 @@ module Google end end + # The request for CreateSession. + class CreateSessionRequest + include Google::Apis::Core::Hashable + + # A session in the Cloud Spanner API. + # Corresponds to the JSON property `session` + # @return [Google::Apis::SpannerV1::Session] + attr_accessor :session + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @session = args[:session] if args.key?(:session) + end + end + # A Cloud Spanner database. class Database include Google::Apis::Core::Hashable @@ -1215,6 +1234,33 @@ module Google end end + # The response for ListSessions. + class ListSessionsResponse + include Google::Apis::Core::Hashable + + # `next_page_token` can be sent in a subsequent + # ListSessions call to fetch more of the matching + # sessions. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of requested sessions. + # Corresponds to the JSON property `sessions` + # @return [Array] + attr_accessor :sessions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @sessions = args[:sessions] if args.key?(:sessions) + end + end + # A modification to one or more Cloud Spanner rows. Mutations can be # applied to a Cloud Spanner database by sending them in a # Commit call. @@ -1270,7 +1316,7 @@ module Google include Google::Apis::Core::Hashable # If the value is `false`, it means the operation is still in progress. - # If true, the operation is completed, and either `error` or `response` is + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] @@ -1740,6 +1786,7 @@ module Google # If greater than zero, only the first `limit` rows are yielded. If `limit` # is zero, the default is no limit. + # A limit cannot be specified if partition_token is set. # Corresponds to the JSON property `limit` # @return [Fixnum] attr_accessor :limit @@ -1916,7 +1963,28 @@ module Google class Session include Google::Apis::Core::Hashable - # Required. The name of the session. + # Output only. The approximate timestamp when the session is last used. It is + # typically earlier than the actual last use time. + # Corresponds to the JSON property `approximateLastUseTime` + # @return [String] + attr_accessor :approximate_last_use_time + + # Output only. The timestamp when the session is created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The labels for the session. + # * Label keys must be between 1 and 63 characters long and must conform to + # the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + # * Label values must be between 0 and 63 characters long and must conform + # to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # * No more than 20 labels can be associated with a given session. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The name of the session. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1927,6 +1995,9 @@ module Google # Update properties of this object def update!(**args) + @approximate_last_use_time = args[:approximate_last_use_time] if args.key?(:approximate_last_use_time) + @create_time = args[:create_time] if args.key?(:create_time) + @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end end diff --git a/generated/google/apis/spanner_v1/representations.rb b/generated/google/apis/spanner_v1/representations.rb index d755692e0..1bc85c315 100644 --- a/generated/google/apis/spanner_v1/representations.rb +++ b/generated/google/apis/spanner_v1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CreateSessionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Database class Representation < Google::Apis::Core::JsonRepresentation; end @@ -166,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListSessionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Mutation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -418,6 +430,14 @@ module Google end end + class CreateSessionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :session, as: 'session', class: Google::Apis::SpannerV1::Session, decorator: Google::Apis::SpannerV1::Session::Representation + + end + end + class Database # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -557,6 +577,15 @@ module Google end end + class ListSessionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :sessions, as: 'sessions', class: Google::Apis::SpannerV1::Session, decorator: Google::Apis::SpannerV1::Session::Representation + + end + end + class Mutation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -708,6 +737,9 @@ module Google class Session # @private class Representation < Google::Apis::Core::JsonRepresentation + property :approximate_last_use_time, as: 'approximateLastUseTime' + property :create_time, as: 'createTime' + hash :labels, as: 'labels' property :name, as: 'name' end end diff --git a/generated/google/apis/spanner_v1/service.rb b/generated/google/apis/spanner_v1/service.rb index 1a8cda23e..024a941bd 100644 --- a/generated/google/apis/spanner_v1/service.rb +++ b/generated/google/apis/spanner_v1/service.rb @@ -1066,6 +1066,7 @@ module Google # periodically, e.g., `"SELECT 1"`. # @param [String] database # Required. The database in which the new session is created. + # @param [Google::Apis::SpannerV1::CreateSessionRequest] create_session_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1083,8 +1084,10 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_instance_database_session(database, fields: nil, quota_user: nil, options: nil, &block) + def create_project_instance_database_session(database, create_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+database}/sessions', options) + command.request_representation = Google::Apis::SpannerV1::CreateSessionRequest::Representation + command.request_object = create_session_request_object command.response_representation = Google::Apis::SpannerV1::Session::Representation command.response_class = Google::Apis::SpannerV1::Session command.params['database'] = database unless database.nil? @@ -1233,6 +1236,54 @@ module Google execute_or_queue_command(command, &block) end + # Lists all sessions in a given database. + # @param [String] database + # Required. The database in which to list sessions. + # @param [String] filter + # An expression for filtering the results of the request. Filter rules are + # case insensitive. The fields eligible for filtering are: + # * labels.key where key is the name of a label + # Some examples of using filters are: + # * labels.env:* --> The session has the label "env". + # * labels.env:dev --> The session has the label "env" and the value of + # the label contains the string "dev". + # @param [Fixnum] page_size + # Number of sessions to be returned in the response. If 0 or less, defaults + # to the server's maximum allowed page size. + # @param [String] page_token + # If non-empty, `page_token` should contain a + # next_page_token from a previous + # ListSessionsResponse. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpannerV1::ListSessionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpannerV1::ListSessionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_instance_database_sessions(database, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+database}/sessions', options) + command.response_representation = Google::Apis::SpannerV1::ListSessionsResponse::Representation + command.response_class = Google::Apis::SpannerV1::ListSessionsResponse + command.params['database'] = database unless database.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Reads rows from the database using key lookups and scans, as a # simple key/value style alternative to # ExecuteSql. This method cannot be used to diff --git a/generated/google/apis/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb index 59eceadac..3708d3ba1 100644 --- a/generated/google/apis/storagetransfer_v1.rb +++ b/generated/google/apis/storagetransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/storage/transfer module StoragetransferV1 VERSION = 'V1' - REVISION = '20170824' + REVISION = '20170918' # 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/storagetransfer_v1/classes.rb b/generated/google/apis/storagetransfer_v1/classes.rb index ff49c314f..b39a52749 100644 --- a/generated/google/apis/storagetransfer_v1/classes.rb +++ b/generated/google/apis/storagetransfer_v1/classes.rb @@ -844,7 +844,6 @@ module Google attr_accessor :name # The ID of the Google Cloud Platform Console project that owns the job. - # Required. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb new file mode 100644 index 000000000..a87e40243 --- /dev/null +++ b/generated/google/apis/testing_v1.rb @@ -0,0 +1,38 @@ +# 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/testing_v1/service.rb' +require 'google/apis/testing_v1/classes.rb' +require 'google/apis/testing_v1/representations.rb' + +module Google + module Apis + # Google Cloud Testing API + # + # Allows developers to run automated tests for their mobile applications on + # Google infrastructure. + # + # @see https://developers.google.com/cloud-test-lab/ + module TestingV1 + VERSION = 'V1' + REVISION = '20170905' + + # 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' + end + end +end diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb new file mode 100644 index 000000000..b4d81148e --- /dev/null +++ b/generated/google/apis/testing_v1/classes.rb @@ -0,0 +1,1616 @@ +# 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 TestingV1 + + # Identifies an account and how to log into it + class Account + include Google::Apis::Core::Hashable + + # Enables automatic Google account login. + # If set, the service will automatically generate a Google test account and add + # it to the device, before executing the test. Note that test accounts might be + # reused. + # Many applications show their full set of functionalities when an account is + # present on the device. Logging into the device with these generated accounts + # allows testing more functionalities. + # Corresponds to the JSON property `googleAuto` + # @return [Google::Apis::TestingV1::GoogleAuto] + attr_accessor :google_auto + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_auto = args[:google_auto] if args.key?(:google_auto) + end + end + + # A single Android device. + class AndroidDevice + include Google::Apis::Core::Hashable + + # The id of the Android device to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidModelId` + # @return [String] + attr_accessor :android_model_id + + # The id of the Android OS version to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidVersionId` + # @return [String] + attr_accessor :android_version_id + + # The locale the test device used for testing. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # How the device is oriented during the test. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_model_id = args[:android_model_id] if args.key?(:android_model_id) + @android_version_id = args[:android_version_id] if args.key?(:android_version_id) + @locale = args[:locale] if args.key?(:locale) + @orientation = args[:orientation] if args.key?(:orientation) + end + end + + # The currently supported Android devices. + class AndroidDeviceCatalog + include Google::Apis::Core::Hashable + + # The set of supported Android device models. + # @OutputOnly + # Corresponds to the JSON property `models` + # @return [Array] + attr_accessor :models + + # Configuration that can be selected at the time a test is run. + # Corresponds to the JSON property `runtimeConfiguration` + # @return [Google::Apis::TestingV1::AndroidRuntimeConfiguration] + attr_accessor :runtime_configuration + + # The set of supported Android OS versions. + # @OutputOnly + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @models = args[:models] if args.key?(:models) + @runtime_configuration = args[:runtime_configuration] if args.key?(:runtime_configuration) + @versions = args[:versions] if args.key?(:versions) + end + end + + # A list of Android device configurations in which the test is to be executed. + class AndroidDeviceList + include Google::Apis::Core::Hashable + + # A list of Android devices + # Required + # Corresponds to the JSON property `androidDevices` + # @return [Array] + attr_accessor :android_devices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_devices = args[:android_devices] if args.key?(:android_devices) + end + end + + # A test of an Android application that can control an Android component + # independently of its normal lifecycle. + # Android instrumentation tests run an application APK and test APK inside the + # same process on a virtual or physical AndroidDevice. They also specify + # a test runner class, such as com.google.GoogleTestRunner, which can vary + # on the specific instrumentation framework chosen. + # See for + # more information on types of Android tests. + class AndroidInstrumentationTest + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `appApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :app_apk + + # The java package for the application under test. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `appPackageId` + # @return [String] + attr_accessor :app_package_id + + # The option of whether running each test within its own invocation of + # instrumentation with Android Test Orchestrator or not. + # ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or + # higher! ** + # Orchestrator offers the following benefits: + # - No shared state + # - Crashes are isolated + # - Logs are scoped per test + # See + # + # for more information about Android Test Orchestrator. + # Optional, if empty, test will be run without orchestrator. + # Corresponds to the JSON property `orchestratorOption` + # @return [String] + attr_accessor :orchestrator_option + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `testApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :test_apk + + # The java package for the test to be executed. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `testPackageId` + # @return [String] + attr_accessor :test_package_id + + # The InstrumentationTestRunner class. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `testRunnerClass` + # @return [String] + attr_accessor :test_runner_class + + # Each target must be fully qualified with the package name or class name, + # in one of these formats: + # - "package package_name" + # - "class package_name.class_name" + # - "class package_name.class_name#method_name" + # Optional, if empty, all targets in the module will be run. + # Corresponds to the JSON property `testTargets` + # @return [Array] + attr_accessor :test_targets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_apk = args[:app_apk] if args.key?(:app_apk) + @app_package_id = args[:app_package_id] if args.key?(:app_package_id) + @orchestrator_option = args[:orchestrator_option] if args.key?(:orchestrator_option) + @test_apk = args[:test_apk] if args.key?(:test_apk) + @test_package_id = args[:test_package_id] if args.key?(:test_package_id) + @test_runner_class = args[:test_runner_class] if args.key?(:test_runner_class) + @test_targets = args[:test_targets] if args.key?(:test_targets) + end + end + + # A set of Android device configuration permutations is defined by the + # the cross-product of the given axes. Internally, the given AndroidMatrix + # will be expanded into a set of AndroidDevices. + # Only supported permutations will be instantiated. Invalid permutations + # (e.g., incompatible models/versions) are ignored. + class AndroidMatrix + include Google::Apis::Core::Hashable + + # The ids of the set of Android device to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidModelIds` + # @return [Array] + attr_accessor :android_model_ids + + # The ids of the set of Android OS version to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidVersionIds` + # @return [Array] + attr_accessor :android_version_ids + + # The set of locales the test device will enable for testing. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `locales` + # @return [Array] + attr_accessor :locales + + # The set of orientations to test with. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `orientations` + # @return [Array] + attr_accessor :orientations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_model_ids = args[:android_model_ids] if args.key?(:android_model_ids) + @android_version_ids = args[:android_version_ids] if args.key?(:android_version_ids) + @locales = args[:locales] if args.key?(:locales) + @orientations = args[:orientations] if args.key?(:orientations) + end + end + + # A description of an Android device tests may be run on. + class AndroidModel + include Google::Apis::Core::Hashable + + # The company that this device is branded with. + # Example: "Google", "Samsung" + # @OutputOnly + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The name of the industrial design. + # This corresponds to android.os.Build.DEVICE + # @OutputOnly + # Corresponds to the JSON property `codename` + # @return [String] + attr_accessor :codename + + # Whether this device is virtual or physical. + # @OutputOnly + # Corresponds to the JSON property `form` + # @return [String] + attr_accessor :form + + # The unique opaque id for this model. + # Use this for invoking the TestExecutionService. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The manufacturer of this device. + # @OutputOnly + # Corresponds to the JSON property `manufacturer` + # @return [String] + attr_accessor :manufacturer + + # The human-readable marketing name for this device model. + # Examples: "Nexus 5", "Galaxy S5" + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Screen density in DPI. + # This corresponds to ro.sf.lcd_density + # @OutputOnly + # Corresponds to the JSON property `screenDensity` + # @return [Fixnum] + attr_accessor :screen_density + + # Screen size in the horizontal (X) dimension measured in pixels. + # @OutputOnly + # Corresponds to the JSON property `screenX` + # @return [Fixnum] + attr_accessor :screen_x + + # Screen size in the vertical (Y) dimension measured in pixels. + # @OutputOnly + # Corresponds to the JSON property `screenY` + # @return [Fixnum] + attr_accessor :screen_y + + # The list of supported ABIs for this device. + # This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level + # 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2. + # The most preferred ABI is the first element in the list. + # Elements are optionally prefixed by "version_id:" (where version_id is + # the id of an AndroidVersion), denoting an ABI that is supported only on + # a particular version. + # @OutputOnly + # Corresponds to the JSON property `supportedAbis` + # @return [Array] + attr_accessor :supported_abis + + # The set of Android versions this device supports. + # @OutputOnly + # Corresponds to the JSON property `supportedVersionIds` + # @return [Array] + attr_accessor :supported_version_ids + + # Tags for this dimension. + # Examples: "default", "preview", "deprecated" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] if args.key?(:brand) + @codename = args[:codename] if args.key?(:codename) + @form = args[:form] if args.key?(:form) + @id = args[:id] if args.key?(:id) + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @name = args[:name] if args.key?(:name) + @screen_density = args[:screen_density] if args.key?(:screen_density) + @screen_x = args[:screen_x] if args.key?(:screen_x) + @screen_y = args[:screen_y] if args.key?(:screen_y) + @supported_abis = args[:supported_abis] if args.key?(:supported_abis) + @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids) + @tags = args[:tags] if args.key?(:tags) + end + end + + # A test of an android application that explores the application on a virtual + # or physical Android Device, finding culprits and crashes as it goes. + class AndroidRoboTest + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `appApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :app_apk + + # The initial activity that should be used to start the app. + # Optional + # Corresponds to the JSON property `appInitialActivity` + # @return [String] + attr_accessor :app_initial_activity + + # The java package for the application under test. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `appPackageId` + # @return [String] + attr_accessor :app_package_id + + # The max depth of the traversal stack Robo can explore. Needs to be at least + # 2 to make Robo explore the app beyond the first activity. + # Default is 50. + # Optional + # Corresponds to the JSON property `maxDepth` + # @return [Fixnum] + attr_accessor :max_depth + + # The max number of steps Robo can execute. + # Default is no limit. + # Optional + # Corresponds to the JSON property `maxSteps` + # @return [Fixnum] + attr_accessor :max_steps + + # A set of directives Robo should apply during the crawl. + # This allows users to customize the crawl. For example, the username and + # password for a test account can be provided. + # Optional + # Corresponds to the JSON property `roboDirectives` + # @return [Array] + attr_accessor :robo_directives + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_apk = args[:app_apk] if args.key?(:app_apk) + @app_initial_activity = args[:app_initial_activity] if args.key?(:app_initial_activity) + @app_package_id = args[:app_package_id] if args.key?(:app_package_id) + @max_depth = args[:max_depth] if args.key?(:max_depth) + @max_steps = args[:max_steps] if args.key?(:max_steps) + @robo_directives = args[:robo_directives] if args.key?(:robo_directives) + end + end + + # Configuration that can be selected at the time a test is run. + class AndroidRuntimeConfiguration + include Google::Apis::Core::Hashable + + # The set of available locales. + # @OutputOnly + # Corresponds to the JSON property `locales` + # @return [Array] + attr_accessor :locales + + # The set of available orientations. + # @OutputOnly + # Corresponds to the JSON property `orientations` + # @return [Array] + attr_accessor :orientations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locales = args[:locales] if args.key?(:locales) + @orientations = args[:orientations] if args.key?(:orientations) + end + end + + # A test of an Android Application with a Test Loop. + # The intent will be implicitly added, since Games is the only + # user of this api, for the time being. + class AndroidTestLoop + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `appApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :app_apk + + # The java package for the application under test. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `appPackageId` + # @return [String] + attr_accessor :app_package_id + + # The list of scenario labels that should be run during the test. + # The scenario labels should map to labels defined in the application's + # manifest. For example, player_experience and + # com.google.test.loops.player_experience add all of the loops labeled in the + # manifest with the com.google.test.loops.player_experience name to the + # execution. + # Optional. Scenarios can also be specified in the scenarios field. + # Corresponds to the JSON property `scenarioLabels` + # @return [Array] + attr_accessor :scenario_labels + + # The list of scenarios that should be run during the test. + # Optional, default is all test loops, derived from the application's + # manifest. + # Corresponds to the JSON property `scenarios` + # @return [Array] + attr_accessor :scenarios + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_apk = args[:app_apk] if args.key?(:app_apk) + @app_package_id = args[:app_package_id] if args.key?(:app_package_id) + @scenario_labels = args[:scenario_labels] if args.key?(:scenario_labels) + @scenarios = args[:scenarios] if args.key?(:scenarios) + end + end + + # A version of the Android OS + class AndroidVersion + include Google::Apis::Core::Hashable + + # The API level for this Android version. + # Examples: 18, 19 + # @OutputOnly + # Corresponds to the JSON property `apiLevel` + # @return [Fixnum] + attr_accessor :api_level + + # The code name for this Android version. + # Examples: "JellyBean", "KitKat" + # @OutputOnly + # Corresponds to the JSON property `codeName` + # @return [String] + attr_accessor :code_name + + # Data about the relative number of devices running a + # given configuration of the Android platform. + # Corresponds to the JSON property `distribution` + # @return [Google::Apis::TestingV1::Distribution] + attr_accessor :distribution + + # An opaque id for this Android version. + # Use this id to invoke the TestExecutionService. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `releaseDate` + # @return [Google::Apis::TestingV1::Date] + attr_accessor :release_date + + # Tags for this dimension. + # Examples: "default", "preview", "deprecated" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + # A string representing this version of the Android OS. + # Examples: "4.3", "4.4" + # @OutputOnly + # Corresponds to the JSON property `versionString` + # @return [String] + attr_accessor :version_string + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_level = args[:api_level] if args.key?(:api_level) + @code_name = args[:code_name] if args.key?(:code_name) + @distribution = args[:distribution] if args.key?(:distribution) + @id = args[:id] if args.key?(:id) + @release_date = args[:release_date] if args.key?(:release_date) + @tags = args[:tags] if args.key?(:tags) + @version_string = args[:version_string] if args.key?(:version_string) + end + end + + # Response containing the current state of the specified test matrix. + class CancelTestMatrixResponse + include Google::Apis::Core::Hashable + + # The current rolled-up state of the test matrix. + # If this state is already final, then the cancelation request will + # have no effect. + # Corresponds to the JSON property `testState` + # @return [String] + attr_accessor :test_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_state = args[:test_state] if args.key?(:test_state) + end + end + + # Information about the client which invoked the test. + class ClientInfo + include Google::Apis::Core::Hashable + + # The list of detailed information about client. + # Corresponds to the JSON property `clientInfoDetails` + # @return [Array] + attr_accessor :client_info_details + + # Client name, such as gcloud. + # Required + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_info_details = args[:client_info_details] if args.key?(:client_info_details) + @name = args[:name] if args.key?(:name) + end + end + + # Key-value pair of detailed information about the client which invoked the + # test. For example `'Version', '1.0'`, `'Release Track', 'BETA'` + class ClientInfoDetail + include Google::Apis::Core::Hashable + + # The key of detailed client information. + # Required + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value of detailed client information. + # Required + # 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 + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + # if specifying a year/month where the day is not significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + + # A single device file description. + class DeviceFile + include Google::Apis::Core::Hashable + + # An opaque binary blob file to install on the device before the test starts + # Corresponds to the JSON property `obbFile` + # @return [Google::Apis::TestingV1::ObbFile] + attr_accessor :obb_file + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @obb_file = args[:obb_file] if args.key?(:obb_file) + end + end + + # Data about the relative number of devices running a + # given configuration of the Android platform. + class Distribution + include Google::Apis::Core::Hashable + + # The estimated fraction (0-1) of the total market with this configuration. + # @OutputOnly + # Corresponds to the JSON property `marketShare` + # @return [Float] + attr_accessor :market_share + + # The time this distribution was measured. + # @OutputOnly + # Corresponds to the JSON property `measurementTime` + # @return [String] + attr_accessor :measurement_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @market_share = args[:market_share] if args.key?(:market_share) + @measurement_time = args[:measurement_time] if args.key?(:measurement_time) + end + end + + # The environment in which the test is run. + class Environment + include Google::Apis::Core::Hashable + + # A single Android device. + # Corresponds to the JSON property `androidDevice` + # @return [Google::Apis::TestingV1::AndroidDevice] + attr_accessor :android_device + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_device = args[:android_device] if args.key?(:android_device) + end + end + + # The matrix of environments in which the test is to be executed. + class EnvironmentMatrix + include Google::Apis::Core::Hashable + + # A list of Android device configurations in which the test is to be executed. + # Corresponds to the JSON property `androidDeviceList` + # @return [Google::Apis::TestingV1::AndroidDeviceList] + attr_accessor :android_device_list + + # A set of Android device configuration permutations is defined by the + # the cross-product of the given axes. Internally, the given AndroidMatrix + # will be expanded into a set of AndroidDevices. + # Only supported permutations will be instantiated. Invalid permutations + # (e.g., incompatible models/versions) are ignored. + # Corresponds to the JSON property `androidMatrix` + # @return [Google::Apis::TestingV1::AndroidMatrix] + attr_accessor :android_matrix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_device_list = args[:android_device_list] if args.key?(:android_device_list) + @android_matrix = args[:android_matrix] if args.key?(:android_matrix) + end + end + + # A key-value pair passed as an environment variable to the test + class EnvironmentVariable + include Google::Apis::Core::Hashable + + # Key for the environment variable + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Value for the environment variable + # 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 + + # A reference to a file, used for user inputs. + class FileReference + include Google::Apis::Core::Hashable + + # A path to a file in Google Cloud Storage. + # Example: gs://build-app-1414623860166/app-debug-unaligned.apk + # Corresponds to the JSON property `gcsPath` + # @return [String] + attr_accessor :gcs_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_path = args[:gcs_path] if args.key?(:gcs_path) + end + end + + # Enables automatic Google account login. + # If set, the service will automatically generate a Google test account and add + # it to the device, before executing the test. Note that test accounts might be + # reused. + # Many applications show their full set of functionalities when an account is + # present on the device. Logging into the device with these generated accounts + # allows testing more functionalities. + class GoogleAuto + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A storage location within Google cloud storage (GCS). + class GoogleCloudStorage + include Google::Apis::Core::Hashable + + # The path to a directory in GCS that will + # eventually contain the results for this test. + # The requesting user must have write access on the bucket in the supplied + # path. + # Required + # Corresponds to the JSON property `gcsPath` + # @return [String] + attr_accessor :gcs_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_path = args[:gcs_path] if args.key?(:gcs_path) + end + end + + # A location/region designation for language. + class Locale + include Google::Apis::Core::Hashable + + # The id for this locale. + # Example: "en_US" + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A human-friendly name for this language/locale. + # Example: "English" + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A human-friendy string representing the region for this locale. + # Example: "United States" + # Not present for every locale. + # @OutputOnly + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Tags for this dimension. + # Examples: "default" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @tags = args[:tags] if args.key?(:tags) + end + end + + # + class NetworkConfiguration + include Google::Apis::Core::Hashable + + # Network emulation parameters + # Corresponds to the JSON property `downRule` + # @return [Google::Apis::TestingV1::TrafficRule] + attr_accessor :down_rule + + # The unique opaque id for this network traffic configuration + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Network emulation parameters + # Corresponds to the JSON property `upRule` + # @return [Google::Apis::TestingV1::TrafficRule] + attr_accessor :up_rule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @down_rule = args[:down_rule] if args.key?(:down_rule) + @id = args[:id] if args.key?(:id) + @up_rule = args[:up_rule] if args.key?(:up_rule) + end + end + + # + class NetworkConfigurationCatalog + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `configurations` + # @return [Array] + attr_accessor :configurations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @configurations = args[:configurations] if args.key?(:configurations) + end + end + + # An opaque binary blob file to install on the device before the test starts + class ObbFile + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `obb` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :obb + + # OBB file name which must conform to the format as specified by + # Android + # e.g. [main|patch].0300110.com.example.android.obb + # which will be installed into + # /Android/obb// + # on the device + # Required + # Corresponds to the JSON property `obbFileName` + # @return [String] + attr_accessor :obb_file_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @obb = args[:obb] if args.key?(:obb) + @obb_file_name = args[:obb_file_name] if args.key?(:obb_file_name) + end + end + + # Screen orientation of the device. + class Orientation + include Google::Apis::Core::Hashable + + # The id for this orientation. + # Example: "portrait" + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A human-friendly name for this orientation. + # Example: "portrait" + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Tags for this dimension. + # Examples: "default" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @tags = args[:tags] if args.key?(:tags) + end + end + + # Locations where the results of running the test are stored. + class ResultStorage + include Google::Apis::Core::Hashable + + # A storage location within Google cloud storage (GCS). + # Corresponds to the JSON property `googleCloudStorage` + # @return [Google::Apis::TestingV1::GoogleCloudStorage] + attr_accessor :google_cloud_storage + + # Represents a tool results execution resource. + # This has the results of a TestMatrix. + # Corresponds to the JSON property `toolResultsExecution` + # @return [Google::Apis::TestingV1::ToolResultsExecution] + attr_accessor :tool_results_execution + + # Represents a tool results history resource. + # Corresponds to the JSON property `toolResultsHistory` + # @return [Google::Apis::TestingV1::ToolResultsHistory] + attr_accessor :tool_results_history + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_cloud_storage = args[:google_cloud_storage] if args.key?(:google_cloud_storage) + @tool_results_execution = args[:tool_results_execution] if args.key?(:tool_results_execution) + @tool_results_history = args[:tool_results_history] if args.key?(:tool_results_history) + end + end + + # Directs Robo to interact with a specific UI element if it is encountered + # during the crawl. Currently, Robo can perform text entry or element click. + class RoboDirective + include Google::Apis::Core::Hashable + + # The type of action that Robo should perform on the specified element. + # Required. + # Corresponds to the JSON property `actionType` + # @return [String] + attr_accessor :action_type + + # The text that Robo is directed to set. If left empty, the directive will be + # treated as a CLICK on the element matching the resource_name. + # Optional + # Corresponds to the JSON property `inputText` + # @return [String] + attr_accessor :input_text + + # The android resource name of the target UI element + # For example, + # in Java: R.string.foo + # in xml: @string/foo + # Only the “foo” part is needed. + # Reference doc: + # https://developer.android.com/guide/topics/resources/accessing-resources.html + # Required + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_type = args[:action_type] if args.key?(:action_type) + @input_text = args[:input_text] if args.key?(:input_text) + @resource_name = args[:resource_name] if args.key?(:resource_name) + end + end + + # Additional details about the progress of the running test. + class TestDetails + include Google::Apis::Core::Hashable + + # If the TestState is ERROR, then this string will contain human-readable + # details about the error. + # @OutputOnly + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # Human-readable, detailed descriptions of the test's progress. + # For example: "Provisioning a device", "Starting Test". + # During the course of execution new data may be appended + # to the end of progress_messages. + # @OutputOnly + # Corresponds to the JSON property `progressMessages` + # @return [Array] + attr_accessor :progress_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_message = args[:error_message] if args.key?(:error_message) + @progress_messages = args[:progress_messages] if args.key?(:progress_messages) + end + end + + # A description of a test environment. + class TestEnvironmentCatalog + include Google::Apis::Core::Hashable + + # The currently supported Android devices. + # Corresponds to the JSON property `androidDeviceCatalog` + # @return [Google::Apis::TestingV1::AndroidDeviceCatalog] + attr_accessor :android_device_catalog + + # Supported network configurations + # Corresponds to the JSON property `networkConfigurationCatalog` + # @return [Google::Apis::TestingV1::NetworkConfigurationCatalog] + attr_accessor :network_configuration_catalog + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_device_catalog = args[:android_device_catalog] if args.key?(:android_device_catalog) + @network_configuration_catalog = args[:network_configuration_catalog] if args.key?(:network_configuration_catalog) + end + end + + # Specifies a single test to be executed in a single environment. + class TestExecution + include Google::Apis::Core::Hashable + + # The environment in which the test is run. + # Corresponds to the JSON property `environment` + # @return [Google::Apis::TestingV1::Environment] + attr_accessor :environment + + # Unique id set by the backend. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Id of the containing TestMatrix. + # @OutputOnly + # Corresponds to the JSON property `matrixId` + # @return [String] + attr_accessor :matrix_id + + # The cloud project that owns the test execution. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Indicates the current progress of the test execution (e.g., FINISHED). + # @OutputOnly + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Additional details about the progress of the running test. + # Corresponds to the JSON property `testDetails` + # @return [Google::Apis::TestingV1::TestDetails] + attr_accessor :test_details + + # A description of how to run the test. + # Corresponds to the JSON property `testSpecification` + # @return [Google::Apis::TestingV1::TestSpecification] + attr_accessor :test_specification + + # The time this test execution was initially created. + # @OutputOnly + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # Represents a tool results step resource. + # This has the results of a TestExecution. + # Corresponds to the JSON property `toolResultsStep` + # @return [Google::Apis::TestingV1::ToolResultsStep] + attr_accessor :tool_results_step + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment = args[:environment] if args.key?(:environment) + @id = args[:id] if args.key?(:id) + @matrix_id = args[:matrix_id] if args.key?(:matrix_id) + @project_id = args[:project_id] if args.key?(:project_id) + @state = args[:state] if args.key?(:state) + @test_details = args[:test_details] if args.key?(:test_details) + @test_specification = args[:test_specification] if args.key?(:test_specification) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @tool_results_step = args[:tool_results_step] if args.key?(:tool_results_step) + end + end + + # A group of one or more TestExecutions, built by taking a + # product of values over a pre-defined set of axes. + class TestMatrix + include Google::Apis::Core::Hashable + + # Information about the client which invoked the test. + # Corresponds to the JSON property `clientInfo` + # @return [Google::Apis::TestingV1::ClientInfo] + attr_accessor :client_info + + # The matrix of environments in which the test is to be executed. + # Corresponds to the JSON property `environmentMatrix` + # @return [Google::Apis::TestingV1::EnvironmentMatrix] + attr_accessor :environment_matrix + + # Describes why the matrix is considered invalid. + # Only useful for matrices in the INVALID state. + # @OutputOnly + # Corresponds to the JSON property `invalidMatrixDetails` + # @return [String] + attr_accessor :invalid_matrix_details + + # The cloud project that owns the test matrix. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Locations where the results of running the test are stored. + # Corresponds to the JSON property `resultStorage` + # @return [Google::Apis::TestingV1::ResultStorage] + attr_accessor :result_storage + + # Indicates the current progress of the test matrix (e.g., FINISHED) + # @OutputOnly + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The list of test executions that the service creates for this matrix. + # @OutputOnly + # Corresponds to the JSON property `testExecutions` + # @return [Array] + attr_accessor :test_executions + + # Unique id set by the service. + # @OutputOnly + # Corresponds to the JSON property `testMatrixId` + # @return [String] + attr_accessor :test_matrix_id + + # A description of how to run the test. + # Corresponds to the JSON property `testSpecification` + # @return [Google::Apis::TestingV1::TestSpecification] + attr_accessor :test_specification + + # The time this test matrix was initially created. + # @OutputOnly + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_info = args[:client_info] if args.key?(:client_info) + @environment_matrix = args[:environment_matrix] if args.key?(:environment_matrix) + @invalid_matrix_details = args[:invalid_matrix_details] if args.key?(:invalid_matrix_details) + @project_id = args[:project_id] if args.key?(:project_id) + @result_storage = args[:result_storage] if args.key?(:result_storage) + @state = args[:state] if args.key?(:state) + @test_executions = args[:test_executions] if args.key?(:test_executions) + @test_matrix_id = args[:test_matrix_id] if args.key?(:test_matrix_id) + @test_specification = args[:test_specification] if args.key?(:test_specification) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # A description of how to set up the device prior to running the test + class TestSetup + include Google::Apis::Core::Hashable + + # Identifies an account and how to log into it + # Corresponds to the JSON property `account` + # @return [Google::Apis::TestingV1::Account] + attr_accessor :account + + # The directories on the device to upload to GCS at the end of the test; + # they must be absolute, whitelisted paths. + # Refer to RegularFile for whitelisted paths. + # Optional + # Corresponds to the JSON property `directoriesToPull` + # @return [Array] + attr_accessor :directories_to_pull + + # Environment variables to set for the test (only applicable for + # instrumentation tests). + # Corresponds to the JSON property `environmentVariables` + # @return [Array] + attr_accessor :environment_variables + + # Optional + # Corresponds to the JSON property `filesToPush` + # @return [Array] + attr_accessor :files_to_push + + # The network traffic profile used for running the test. + # Optional + # Corresponds to the JSON property `networkProfile` + # @return [String] + attr_accessor :network_profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @directories_to_pull = args[:directories_to_pull] if args.key?(:directories_to_pull) + @environment_variables = args[:environment_variables] if args.key?(:environment_variables) + @files_to_push = args[:files_to_push] if args.key?(:files_to_push) + @network_profile = args[:network_profile] if args.key?(:network_profile) + end + end + + # A description of how to run the test. + class TestSpecification + include Google::Apis::Core::Hashable + + # A test of an Android application that can control an Android component + # independently of its normal lifecycle. + # Android instrumentation tests run an application APK and test APK inside the + # same process on a virtual or physical AndroidDevice. They also specify + # a test runner class, such as com.google.GoogleTestRunner, which can vary + # on the specific instrumentation framework chosen. + # See for + # more information on types of Android tests. + # Corresponds to the JSON property `androidInstrumentationTest` + # @return [Google::Apis::TestingV1::AndroidInstrumentationTest] + attr_accessor :android_instrumentation_test + + # A test of an android application that explores the application on a virtual + # or physical Android Device, finding culprits and crashes as it goes. + # Corresponds to the JSON property `androidRoboTest` + # @return [Google::Apis::TestingV1::AndroidRoboTest] + attr_accessor :android_robo_test + + # A test of an Android Application with a Test Loop. + # The intent will be implicitly added, since Games is the only + # user of this api, for the time being. + # Corresponds to the JSON property `androidTestLoop` + # @return [Google::Apis::TestingV1::AndroidTestLoop] + attr_accessor :android_test_loop + + # Enables automatic Google account login. + # If set, the service will automatically generate a Google test account and + # add it to the device, before executing the test. Note that test accounts + # might be reused. + # Many applications show their full set of functionalities when an account is + # present on the device. Logging into the device with these generated + # accounts allows testing more functionalities. + # Default is false. + # Optional + # Corresponds to the JSON property `autoGoogleLogin` + # @return [Boolean] + attr_accessor :auto_google_login + alias_method :auto_google_login?, :auto_google_login + + # Disables performance metrics recording; may reduce test latency. + # Corresponds to the JSON property `disablePerformanceMetrics` + # @return [Boolean] + attr_accessor :disable_performance_metrics + alias_method :disable_performance_metrics?, :disable_performance_metrics + + # Disables video recording; may reduce test latency. + # Corresponds to the JSON property `disableVideoRecording` + # @return [Boolean] + attr_accessor :disable_video_recording + alias_method :disable_video_recording?, :disable_video_recording + + # A description of how to set up the device prior to running the test + # Corresponds to the JSON property `testSetup` + # @return [Google::Apis::TestingV1::TestSetup] + attr_accessor :test_setup + + # Max time a test execution is allowed to run before it is + # automatically cancelled. + # Optional, default is 5 min. + # Corresponds to the JSON property `testTimeout` + # @return [String] + attr_accessor :test_timeout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_instrumentation_test = args[:android_instrumentation_test] if args.key?(:android_instrumentation_test) + @android_robo_test = args[:android_robo_test] if args.key?(:android_robo_test) + @android_test_loop = args[:android_test_loop] if args.key?(:android_test_loop) + @auto_google_login = args[:auto_google_login] if args.key?(:auto_google_login) + @disable_performance_metrics = args[:disable_performance_metrics] if args.key?(:disable_performance_metrics) + @disable_video_recording = args[:disable_video_recording] if args.key?(:disable_video_recording) + @test_setup = args[:test_setup] if args.key?(:test_setup) + @test_timeout = args[:test_timeout] if args.key?(:test_timeout) + end + end + + # Represents a tool results execution resource. + # This has the results of a TestMatrix. + class ToolResultsExecution + include Google::Apis::Core::Hashable + + # A tool results execution ID. + # @OutputOnly + # Corresponds to the JSON property `executionId` + # @return [String] + attr_accessor :execution_id + + # A tool results history ID. + # @OutputOnly + # Corresponds to the JSON property `historyId` + # @return [String] + attr_accessor :history_id + + # The cloud project that owns the tool results execution. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_id = args[:execution_id] if args.key?(:execution_id) + @history_id = args[:history_id] if args.key?(:history_id) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # Represents a tool results history resource. + class ToolResultsHistory + include Google::Apis::Core::Hashable + + # A tool results history ID. + # Required + # Corresponds to the JSON property `historyId` + # @return [String] + attr_accessor :history_id + + # The cloud project that owns the tool results history. + # Required + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @history_id = args[:history_id] if args.key?(:history_id) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # Represents a tool results step resource. + # This has the results of a TestExecution. + class ToolResultsStep + include Google::Apis::Core::Hashable + + # A tool results execution ID. + # @OutputOnly + # Corresponds to the JSON property `executionId` + # @return [String] + attr_accessor :execution_id + + # A tool results history ID. + # @OutputOnly + # Corresponds to the JSON property `historyId` + # @return [String] + attr_accessor :history_id + + # The cloud project that owns the tool results step. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # A tool results step ID. + # @OutputOnly + # Corresponds to the JSON property `stepId` + # @return [String] + attr_accessor :step_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_id = args[:execution_id] if args.key?(:execution_id) + @history_id = args[:history_id] if args.key?(:history_id) + @project_id = args[:project_id] if args.key?(:project_id) + @step_id = args[:step_id] if args.key?(:step_id) + end + end + + # Network emulation parameters + class TrafficRule + include Google::Apis::Core::Hashable + + # Bandwidth in kbits/second + # Corresponds to the JSON property `bandwidth` + # @return [Float] + attr_accessor :bandwidth + + # Burst size in kbits + # Corresponds to the JSON property `burst` + # @return [Float] + attr_accessor :burst + + # Packet delay, must be >= 0 + # Corresponds to the JSON property `delay` + # @return [String] + attr_accessor :delay + + # Packet duplication ratio (0.0 - 1.0) + # Corresponds to the JSON property `packetDuplicationRatio` + # @return [Float] + attr_accessor :packet_duplication_ratio + + # Packet loss ratio (0.0 - 1.0) + # Corresponds to the JSON property `packetLossRatio` + # @return [Float] + attr_accessor :packet_loss_ratio + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bandwidth = args[:bandwidth] if args.key?(:bandwidth) + @burst = args[:burst] if args.key?(:burst) + @delay = args[:delay] if args.key?(:delay) + @packet_duplication_ratio = args[:packet_duplication_ratio] if args.key?(:packet_duplication_ratio) + @packet_loss_ratio = args[:packet_loss_ratio] if args.key?(:packet_loss_ratio) + end + end + end + end +end diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb new file mode 100644 index 000000000..23c0b56be --- /dev/null +++ b/generated/google/apis/testing_v1/representations.rb @@ -0,0 +1,688 @@ +# 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 TestingV1 + + class Account + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidDevice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidDeviceCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidDeviceList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidInstrumentationTest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidModel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidRoboTest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidRuntimeConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidTestLoop + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CancelTestMatrixResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientInfoDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeviceFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Distribution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Environment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EnvironmentMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EnvironmentVariable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FileReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAuto + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudStorage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Locale + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkConfigurationCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ObbFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Orientation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResultStorage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RoboDirective + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestEnvironmentCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestExecution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestSetup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestSpecification + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ToolResultsExecution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ToolResultsHistory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ToolResultsStep + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TrafficRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Account + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_auto, as: 'googleAuto', class: Google::Apis::TestingV1::GoogleAuto, decorator: Google::Apis::TestingV1::GoogleAuto::Representation + + end + end + + class AndroidDevice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_model_id, as: 'androidModelId' + property :android_version_id, as: 'androidVersionId' + property :locale, as: 'locale' + property :orientation, as: 'orientation' + end + end + + class AndroidDeviceCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :models, as: 'models', class: Google::Apis::TestingV1::AndroidModel, decorator: Google::Apis::TestingV1::AndroidModel::Representation + + property :runtime_configuration, as: 'runtimeConfiguration', class: Google::Apis::TestingV1::AndroidRuntimeConfiguration, decorator: Google::Apis::TestingV1::AndroidRuntimeConfiguration::Representation + + collection :versions, as: 'versions', class: Google::Apis::TestingV1::AndroidVersion, decorator: Google::Apis::TestingV1::AndroidVersion::Representation + + end + end + + class AndroidDeviceList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :android_devices, as: 'androidDevices', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation + + end + end + + class AndroidInstrumentationTest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :app_package_id, as: 'appPackageId' + property :orchestrator_option, as: 'orchestratorOption' + property :test_apk, as: 'testApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :test_package_id, as: 'testPackageId' + property :test_runner_class, as: 'testRunnerClass' + collection :test_targets, as: 'testTargets' + end + end + + class AndroidMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :android_model_ids, as: 'androidModelIds' + collection :android_version_ids, as: 'androidVersionIds' + collection :locales, as: 'locales' + collection :orientations, as: 'orientations' + end + end + + class AndroidModel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :codename, as: 'codename' + property :form, as: 'form' + property :id, as: 'id' + property :manufacturer, as: 'manufacturer' + property :name, as: 'name' + property :screen_density, as: 'screenDensity' + property :screen_x, as: 'screenX' + property :screen_y, as: 'screenY' + collection :supported_abis, as: 'supportedAbis' + collection :supported_version_ids, as: 'supportedVersionIds' + collection :tags, as: 'tags' + end + end + + class AndroidRoboTest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :app_initial_activity, as: 'appInitialActivity' + property :app_package_id, as: 'appPackageId' + property :max_depth, as: 'maxDepth' + property :max_steps, as: 'maxSteps' + collection :robo_directives, as: 'roboDirectives', class: Google::Apis::TestingV1::RoboDirective, decorator: Google::Apis::TestingV1::RoboDirective::Representation + + end + end + + class AndroidRuntimeConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locales, as: 'locales', class: Google::Apis::TestingV1::Locale, decorator: Google::Apis::TestingV1::Locale::Representation + + collection :orientations, as: 'orientations', class: Google::Apis::TestingV1::Orientation, decorator: Google::Apis::TestingV1::Orientation::Representation + + end + end + + class AndroidTestLoop + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :app_package_id, as: 'appPackageId' + collection :scenario_labels, as: 'scenarioLabels' + collection :scenarios, as: 'scenarios' + end + end + + class AndroidVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_level, as: 'apiLevel' + property :code_name, as: 'codeName' + property :distribution, as: 'distribution', class: Google::Apis::TestingV1::Distribution, decorator: Google::Apis::TestingV1::Distribution::Representation + + property :id, as: 'id' + property :release_date, as: 'releaseDate', class: Google::Apis::TestingV1::Date, decorator: Google::Apis::TestingV1::Date::Representation + + collection :tags, as: 'tags' + property :version_string, as: 'versionString' + end + end + + class CancelTestMatrixResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :test_state, as: 'testState' + end + end + + class ClientInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :client_info_details, as: 'clientInfoDetails', class: Google::Apis::TestingV1::ClientInfoDetail, decorator: Google::Apis::TestingV1::ClientInfoDetail::Representation + + property :name, as: 'name' + end + end + + class ClientInfoDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + + class DeviceFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :obb_file, as: 'obbFile', class: Google::Apis::TestingV1::ObbFile, decorator: Google::Apis::TestingV1::ObbFile::Representation + + end + end + + class Distribution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :market_share, as: 'marketShare' + property :measurement_time, as: 'measurementTime' + end + end + + class Environment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_device, as: 'androidDevice', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation + + end + end + + class EnvironmentMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_device_list, as: 'androidDeviceList', class: Google::Apis::TestingV1::AndroidDeviceList, decorator: Google::Apis::TestingV1::AndroidDeviceList::Representation + + property :android_matrix, as: 'androidMatrix', class: Google::Apis::TestingV1::AndroidMatrix, decorator: Google::Apis::TestingV1::AndroidMatrix::Representation + + end + end + + class EnvironmentVariable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class FileReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_path, as: 'gcsPath' + end + end + + class GoogleAuto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudStorage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_path, as: 'gcsPath' + end + end + + class Locale + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + property :region, as: 'region' + collection :tags, as: 'tags' + end + end + + class NetworkConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :down_rule, as: 'downRule', class: Google::Apis::TestingV1::TrafficRule, decorator: Google::Apis::TestingV1::TrafficRule::Representation + + property :id, as: 'id' + property :up_rule, as: 'upRule', class: Google::Apis::TestingV1::TrafficRule, decorator: Google::Apis::TestingV1::TrafficRule::Representation + + end + end + + class NetworkConfigurationCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :configurations, as: 'configurations', class: Google::Apis::TestingV1::NetworkConfiguration, decorator: Google::Apis::TestingV1::NetworkConfiguration::Representation + + end + end + + class ObbFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :obb, as: 'obb', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :obb_file_name, as: 'obbFileName' + end + end + + class Orientation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + collection :tags, as: 'tags' + end + end + + class ResultStorage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_cloud_storage, as: 'googleCloudStorage', class: Google::Apis::TestingV1::GoogleCloudStorage, decorator: Google::Apis::TestingV1::GoogleCloudStorage::Representation + + property :tool_results_execution, as: 'toolResultsExecution', class: Google::Apis::TestingV1::ToolResultsExecution, decorator: Google::Apis::TestingV1::ToolResultsExecution::Representation + + property :tool_results_history, as: 'toolResultsHistory', class: Google::Apis::TestingV1::ToolResultsHistory, decorator: Google::Apis::TestingV1::ToolResultsHistory::Representation + + end + end + + class RoboDirective + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_type, as: 'actionType' + property :input_text, as: 'inputText' + property :resource_name, as: 'resourceName' + end + end + + class TestDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_message, as: 'errorMessage' + collection :progress_messages, as: 'progressMessages' + end + end + + class TestEnvironmentCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_device_catalog, as: 'androidDeviceCatalog', class: Google::Apis::TestingV1::AndroidDeviceCatalog, decorator: Google::Apis::TestingV1::AndroidDeviceCatalog::Representation + + property :network_configuration_catalog, as: 'networkConfigurationCatalog', class: Google::Apis::TestingV1::NetworkConfigurationCatalog, decorator: Google::Apis::TestingV1::NetworkConfigurationCatalog::Representation + + end + end + + class TestExecution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment', class: Google::Apis::TestingV1::Environment, decorator: Google::Apis::TestingV1::Environment::Representation + + property :id, as: 'id' + property :matrix_id, as: 'matrixId' + property :project_id, as: 'projectId' + property :state, as: 'state' + property :test_details, as: 'testDetails', class: Google::Apis::TestingV1::TestDetails, decorator: Google::Apis::TestingV1::TestDetails::Representation + + property :test_specification, as: 'testSpecification', class: Google::Apis::TestingV1::TestSpecification, decorator: Google::Apis::TestingV1::TestSpecification::Representation + + property :timestamp, as: 'timestamp' + property :tool_results_step, as: 'toolResultsStep', class: Google::Apis::TestingV1::ToolResultsStep, decorator: Google::Apis::TestingV1::ToolResultsStep::Representation + + end + end + + class TestMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_info, as: 'clientInfo', class: Google::Apis::TestingV1::ClientInfo, decorator: Google::Apis::TestingV1::ClientInfo::Representation + + property :environment_matrix, as: 'environmentMatrix', class: Google::Apis::TestingV1::EnvironmentMatrix, decorator: Google::Apis::TestingV1::EnvironmentMatrix::Representation + + property :invalid_matrix_details, as: 'invalidMatrixDetails' + property :project_id, as: 'projectId' + property :result_storage, as: 'resultStorage', class: Google::Apis::TestingV1::ResultStorage, decorator: Google::Apis::TestingV1::ResultStorage::Representation + + property :state, as: 'state' + collection :test_executions, as: 'testExecutions', class: Google::Apis::TestingV1::TestExecution, decorator: Google::Apis::TestingV1::TestExecution::Representation + + property :test_matrix_id, as: 'testMatrixId' + property :test_specification, as: 'testSpecification', class: Google::Apis::TestingV1::TestSpecification, decorator: Google::Apis::TestingV1::TestSpecification::Representation + + property :timestamp, as: 'timestamp' + end + end + + class TestSetup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account', class: Google::Apis::TestingV1::Account, decorator: Google::Apis::TestingV1::Account::Representation + + collection :directories_to_pull, as: 'directoriesToPull' + collection :environment_variables, as: 'environmentVariables', class: Google::Apis::TestingV1::EnvironmentVariable, decorator: Google::Apis::TestingV1::EnvironmentVariable::Representation + + collection :files_to_push, as: 'filesToPush', class: Google::Apis::TestingV1::DeviceFile, decorator: Google::Apis::TestingV1::DeviceFile::Representation + + property :network_profile, as: 'networkProfile' + end + end + + class TestSpecification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_instrumentation_test, as: 'androidInstrumentationTest', class: Google::Apis::TestingV1::AndroidInstrumentationTest, decorator: Google::Apis::TestingV1::AndroidInstrumentationTest::Representation + + property :android_robo_test, as: 'androidRoboTest', class: Google::Apis::TestingV1::AndroidRoboTest, decorator: Google::Apis::TestingV1::AndroidRoboTest::Representation + + property :android_test_loop, as: 'androidTestLoop', class: Google::Apis::TestingV1::AndroidTestLoop, decorator: Google::Apis::TestingV1::AndroidTestLoop::Representation + + property :auto_google_login, as: 'autoGoogleLogin' + property :disable_performance_metrics, as: 'disablePerformanceMetrics' + property :disable_video_recording, as: 'disableVideoRecording' + property :test_setup, as: 'testSetup', class: Google::Apis::TestingV1::TestSetup, decorator: Google::Apis::TestingV1::TestSetup::Representation + + property :test_timeout, as: 'testTimeout' + end + end + + class ToolResultsExecution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_id, as: 'executionId' + property :history_id, as: 'historyId' + property :project_id, as: 'projectId' + end + end + + class ToolResultsHistory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :history_id, as: 'historyId' + property :project_id, as: 'projectId' + end + end + + class ToolResultsStep + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_id, as: 'executionId' + property :history_id, as: 'historyId' + property :project_id, as: 'projectId' + property :step_id, as: 'stepId' + end + end + + class TrafficRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bandwidth, as: 'bandwidth' + property :burst, as: 'burst' + property :delay, as: 'delay' + property :packet_duplication_ratio, as: 'packetDuplicationRatio' + property :packet_loss_ratio, as: 'packetLossRatio' + end + end + end + end +end diff --git a/generated/google/apis/testing_v1/service.rb b/generated/google/apis/testing_v1/service.rb new file mode 100644 index 000000000..478b829eb --- /dev/null +++ b/generated/google/apis/testing_v1/service.rb @@ -0,0 +1,221 @@ +# 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 TestingV1 + # Google Cloud Testing API + # + # Allows developers to run automated tests for their mobile applications on + # Google infrastructure. + # + # @example + # require 'google/apis/testing_v1' + # + # Testing = Google::Apis::TestingV1 # Alias the module + # service = Testing::TestingService.new + # + # @see https://developers.google.com/cloud-test-lab/ + class TestingService < 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. + attr_accessor :quota_user + + def initialize + super('https://testing.googleapis.com/', '') + @batch_path = 'batch' + end + + # Cancels unfinished test executions in a test matrix. + # This call returns immediately and cancellation proceeds asychronously. + # If the matrix is already final, this operation will have no effect. + # May return any of the following canonical error codes: + # - PERMISSION_DENIED - if the user is not authorized to read project + # - INVALID_ARGUMENT - if the request is malformed + # - NOT_FOUND - if the Test Matrix does not exist + # @param [String] project_id + # Cloud project that owns the test. + # @param [String] test_matrix_id + # Test matrix that will be canceled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TestingV1::CancelTestMatrixResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::CancelTestMatrixResponse] + # + # @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 cancel_project_test_matrix(project_id, test_matrix_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel', options) + command.response_representation = Google::Apis::TestingV1::CancelTestMatrixResponse::Representation + command.response_class = Google::Apis::TestingV1::CancelTestMatrixResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['testMatrixId'] = test_matrix_id unless test_matrix_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Request to run a matrix of tests according to the given specifications. + # Unsupported environments will be returned in the state UNSUPPORTED. + # Matrices are limited to at most 200 supported executions. + # May return any of the following canonical error codes: + # - PERMISSION_DENIED - if the user is not authorized to write to project + # - INVALID_ARGUMENT - if the request is malformed or if the matrix expands + # to more than 200 supported executions + # @param [String] project_id + # The GCE project under which this job will run. + # @param [Google::Apis::TestingV1::TestMatrix] test_matrix_object + # @param [String] request_id + # A string id used to detect duplicated requests. + # Ids are automatically scoped to a project, so + # users should ensure the ID is unique per-project. + # A UUID is recommended. + # Optional, but strongly recommended. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TestingV1::TestMatrix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::TestMatrix] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_test_matrix(project_id, test_matrix_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/testMatrices', options) + command.request_representation = Google::Apis::TestingV1::TestMatrix::Representation + command.request_object = test_matrix_object + command.response_representation = Google::Apis::TestingV1::TestMatrix::Representation + command.response_class = Google::Apis::TestingV1::TestMatrix + command.params['projectId'] = project_id unless project_id.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Check the status of a test matrix. + # May return any of the following canonical error codes: + # - PERMISSION_DENIED - if the user is not authorized to read project + # - INVALID_ARGUMENT - if the request is malformed + # - NOT_FOUND - if the Test Matrix does not exist + # @param [String] project_id + # Cloud project that owns the test matrix. + # @param [String] test_matrix_id + # Unique test matrix id which was assigned by the service. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TestingV1::TestMatrix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::TestMatrix] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_test_matrix(project_id, test_matrix_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/testMatrices/{testMatrixId}', options) + command.response_representation = Google::Apis::TestingV1::TestMatrix::Representation + command.response_class = Google::Apis::TestingV1::TestMatrix + command.params['projectId'] = project_id unless project_id.nil? + command.params['testMatrixId'] = test_matrix_id unless test_matrix_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get the catalog of supported test environments. + # May return any of the following canonical error codes: + # - INVALID_ARGUMENT - if the request is malformed + # - NOT_FOUND - if the environment type does not exist + # - INTERNAL - if an internal error occurred + # @param [String] environment_type + # The type of environment that should be listed. + # Required + # @param [String] project_id + # For authorization, the cloud project requesting the TestEnvironmentCatalog. + # Optional + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TestingV1::TestEnvironmentCatalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::TestEnvironmentCatalog] + # + # @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_test_environment_catalog(environment_type, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/testEnvironmentCatalog/{environmentType}', options) + command.response_representation = Google::Apis::TestingV1::TestEnvironmentCatalog::Representation + command.response_class = Google::Apis::TestingV1::TestEnvironmentCatalog + command.params['environmentType'] = environment_type unless environment_type.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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? + end + end + end + end +end