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
This commit is contained in:
parent
ea2396cb9c
commit
1797e319c5
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::DeploymentmanagerAlpha::CompositeType>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerAlpha::DeploymentLabelEntry>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::DeploymentUpdateLabelEntry>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::Deployment>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::ImportFile>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::Manifest>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::Operation>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::Resource::Warning>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerAlpha::ResourceUpdate::Warning>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerAlpha::TypeProvider>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::TypeInfo>]
|
||||
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<Google::Apis::DeploymentmanagerAlpha::Type>]
|
||||
attr_accessor :types
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
|
||||
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<Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry>]
|
||||
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<Google::Apis::DeploymentmanagerV2::Deployment>]
|
||||
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<Google::Apis::DeploymentmanagerV2::ImportFile>]
|
||||
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<Google::Apis::DeploymentmanagerV2::Manifest>]
|
||||
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<Google::Apis::DeploymentmanagerV2::Operation>]
|
||||
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<Google::Apis::DeploymentmanagerV2::Resource::Warning>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerV2::Type>]
|
||||
attr_accessor :types
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::DeploymentmanagerV2beta::CompositeType>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerV2beta::DeploymentLabelEntry>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::DeploymentUpdateLabelEntry>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::Deployment>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::ImportFile>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::Manifest>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::Operation>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::Resource::Warning>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerV2beta::ResourceUpdate::Warning>]
|
||||
|
@ -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<Google::Apis::DeploymentmanagerV2beta::TypeProvider>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::TypeInfo>]
|
||||
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<Google::Apis::DeploymentmanagerV2beta::Type>]
|
||||
attr_accessor :types
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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<String,Object>]
|
||||
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/<identifier>`.
|
||||
# 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<String,Object>]
|
||||
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<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoryDescription>]
|
||||
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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<Google::Apis::OsloginV1beta::PosixAccount>]
|
||||
attr_accessor :posix_accounts
|
||||
|
||||
# A map from SSH public key fingerprint to the associated key object.
|
||||
# Corresponds to the JSON property `sshPublicKeys`
|
||||
# @return [Hash<String,Google::Apis::OsloginV1beta::SshPublicKey>]
|
||||
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
|
||||
# <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
|
||||
# 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
|
|
@ -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
|
|
@ -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
|
|
@ -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'
|
||||
|
|
|
@ -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<Google::Apis::SpannerV1::Session>]
|
||||
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<String,String>]
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue