Autogenerated update (2017-10-13)

Update:
- admin_directory_v1
- cloudfunctions_v1beta2
- container_v1beta1
- dataproc_v1beta2
- monitoring_v3
- servicecontrol_v1
- servicemanagement_v1
- serviceuser_v1
- testing_v1
- youtube_partner_v1
This commit is contained in:
Google APIs 2017-10-13 00:35:09 +00:00
parent 6e2276cb80
commit 025a8c3b31
29 changed files with 1593 additions and 141 deletions

View File

@ -2022,6 +2022,16 @@
"/admin:directory_v1/Aliases/aliases/alias": alias
"/admin:directory_v1/Aliases/etag": etag
"/admin:directory_v1/Aliases/kind": kind
"/admin:directory_v1/AppAccessCollections": app_access_collections
"/admin:directory_v1/AppAccessCollections/blockedApiAccessBuckets": blocked_api_access_buckets
"/admin:directory_v1/AppAccessCollections/blockedApiAccessBuckets/blocked_api_access_bucket": blocked_api_access_bucket
"/admin:directory_v1/AppAccessCollections/enforceSettingsForAndroidDrive": enforce_settings_for_android_drive
"/admin:directory_v1/AppAccessCollections/errorMessage": error_message
"/admin:directory_v1/AppAccessCollections/etag": etag
"/admin:directory_v1/AppAccessCollections/kind": kind
"/admin:directory_v1/AppAccessCollections/resourceId": resource_id
"/admin:directory_v1/AppAccessCollections/resourceName": resource_name
"/admin:directory_v1/AppAccessCollections/trustDomainOwnedApps": trust_domain_owned_apps
"/admin:directory_v1/Asp": asp
"/admin:directory_v1/Asp/codeId": code_id
"/admin:directory_v1/Asp/creationTime": creation_time
@ -2360,6 +2370,18 @@
"/admin:directory_v1/Tokens/items": items
"/admin:directory_v1/Tokens/items/item": item
"/admin:directory_v1/Tokens/kind": kind
"/admin:directory_v1/TrustedAppId": trusted_app_id
"/admin:directory_v1/TrustedAppId/androidPackageName": android_package_name
"/admin:directory_v1/TrustedAppId/certificateHashSHA1": certificate_hash_sha1
"/admin:directory_v1/TrustedAppId/certificateHashSHA256": certificate_hash_sha256
"/admin:directory_v1/TrustedAppId/etag": etag
"/admin:directory_v1/TrustedAppId/kind": kind
"/admin:directory_v1/TrustedApps": trusted_apps
"/admin:directory_v1/TrustedApps/etag": etag
"/admin:directory_v1/TrustedApps/kind": kind
"/admin:directory_v1/TrustedApps/nextPageToken": next_page_token
"/admin:directory_v1/TrustedApps/trustedApps": trusted_apps
"/admin:directory_v1/TrustedApps/trustedApps/trusted_app": trusted_app
"/admin:directory_v1/User": user
"/admin:directory_v1/User/addresses": addresses
"/admin:directory_v1/User/agreedToTerms": agreed_to_terms
@ -2694,6 +2716,8 @@
"/admin:directory_v1/directory.orgunits.update/orgUnitPath": org_unit_path
"/admin:directory_v1/directory.privileges.list": list_privileges
"/admin:directory_v1/directory.privileges.list/customer": customer
"/admin:directory_v1/directory.resolvedAppAccessSettings.GetSettings": get_resolved_app_access_setting_settings
"/admin:directory_v1/directory.resolvedAppAccessSettings.ListTrustedApps": list_resolved_app_access_setting_trusted_apps
"/admin:directory_v1/directory.resources.calendars.delete": delete_calendar_resource
"/admin:directory_v1/directory.resources.calendars.delete/calendarResourceId": calendar_resource_id
"/admin:directory_v1/directory.resources.calendars.delete/customer": customer
@ -12347,6 +12371,7 @@
"/cloudfunctions:v1beta2/CloudFunction/sourceArchiveUrl": source_archive_url
"/cloudfunctions:v1beta2/CloudFunction/sourceRepository": source_repository
"/cloudfunctions:v1beta2/CloudFunction/sourceRepositoryUrl": source_repository_url
"/cloudfunctions:v1beta2/CloudFunction/sourceUploadUrl": source_upload_url
"/cloudfunctions:v1beta2/CloudFunction/status": status
"/cloudfunctions:v1beta2/CloudFunction/timeout": timeout
"/cloudfunctions:v1beta2/CloudFunction/updateTime": update_time
@ -12358,6 +12383,13 @@
"/cloudfunctions:v1beta2/EventTrigger/service": service
"/cloudfunctions:v1beta2/FailurePolicy": failure_policy
"/cloudfunctions:v1beta2/FailurePolicy/retry": retry
"/cloudfunctions:v1beta2/GenerateDownloadUrlRequest": generate_download_url_request
"/cloudfunctions:v1beta2/GenerateDownloadUrlRequest/versionId": version_id
"/cloudfunctions:v1beta2/GenerateDownloadUrlResponse": generate_download_url_response
"/cloudfunctions:v1beta2/GenerateDownloadUrlResponse/downloadUrl": download_url
"/cloudfunctions:v1beta2/GenerateUploadUrlRequest": generate_upload_url_request
"/cloudfunctions:v1beta2/GenerateUploadUrlResponse": generate_upload_url_response
"/cloudfunctions:v1beta2/GenerateUploadUrlResponse/uploadUrl": upload_url
"/cloudfunctions:v1beta2/HTTPSTrigger": https_trigger
"/cloudfunctions:v1beta2/HTTPSTrigger/url": url
"/cloudfunctions:v1beta2/ListFunctionsResponse": list_functions_response
@ -12420,6 +12452,10 @@
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.create/location": location
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.delete": delete_project_location_function
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.delete/name": name
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.generateDownloadUrl": generate_function_download_url
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.generateDownloadUrl/name": name
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.generateUploadUrl": generate_function_upload_url
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.generateUploadUrl/parent": parent
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.get": get_project_location_function
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.get/name": name
"/cloudfunctions:v1beta2/cloudfunctions.projects.locations.functions.list": list_project_location_functions
@ -47268,6 +47304,9 @@
"/ml:v1beta1/ml.projects.predict": predict_project
"/ml:v1beta1/ml.projects.predict/name": name
"/ml:v1beta1/quotaUser": quota_user
"/monitoring:v3/BasicAuthentication": basic_authentication
"/monitoring:v3/BasicAuthentication/password": password
"/monitoring:v3/BasicAuthentication/username": username
"/monitoring:v3/BucketOptions": bucket_options
"/monitoring:v3/BucketOptions/explicitBuckets": explicit_buckets
"/monitoring:v3/BucketOptions/exponentialBuckets": exponential_buckets
@ -47295,6 +47334,8 @@
"/monitoring:v3/CollectdValueError": collectd_value_error
"/monitoring:v3/CollectdValueError/error": error
"/monitoring:v3/CollectdValueError/index": index
"/monitoring:v3/ContentMatcher": content_matcher
"/monitoring:v3/ContentMatcher/content": content
"/monitoring:v3/CreateCollectdTimeSeriesRequest": create_collectd_time_series_request
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads": collectd_payloads
"/monitoring:v3/CreateCollectdTimeSeriesRequest/collectdPayloads/collectd_payload": collectd_payload
@ -47340,6 +47381,14 @@
"/monitoring:v3/Group/isCluster": is_cluster
"/monitoring:v3/Group/name": name
"/monitoring:v3/Group/parentName": parent_name
"/monitoring:v3/HttpCheck": http_check
"/monitoring:v3/HttpCheck/authInfo": auth_info
"/monitoring:v3/HttpCheck/headers": headers
"/monitoring:v3/HttpCheck/headers/header": header
"/monitoring:v3/HttpCheck/maskHeaders": mask_headers
"/monitoring:v3/HttpCheck/path": path
"/monitoring:v3/HttpCheck/port": port
"/monitoring:v3/HttpCheck/useSsl": use_ssl
"/monitoring:v3/LabelDescriptor": label_descriptor
"/monitoring:v3/LabelDescriptor/description": description
"/monitoring:v3/LabelDescriptor/key": key
@ -47369,6 +47418,14 @@
"/monitoring:v3/ListTimeSeriesResponse/nextPageToken": next_page_token
"/monitoring:v3/ListTimeSeriesResponse/timeSeries": time_series
"/monitoring:v3/ListTimeSeriesResponse/timeSeries/time_series": time_series
"/monitoring:v3/ListUptimeCheckConfigsResponse": list_uptime_check_configs_response
"/monitoring:v3/ListUptimeCheckConfigsResponse/nextPageToken": next_page_token
"/monitoring:v3/ListUptimeCheckConfigsResponse/uptimeCheckConfigs": uptime_check_configs
"/monitoring:v3/ListUptimeCheckConfigsResponse/uptimeCheckConfigs/uptime_check_config": uptime_check_config
"/monitoring:v3/ListUptimeCheckIpsResponse": list_uptime_check_ips_response
"/monitoring:v3/ListUptimeCheckIpsResponse/nextPageToken": next_page_token
"/monitoring:v3/ListUptimeCheckIpsResponse/uptimeCheckIps": uptime_check_ips
"/monitoring:v3/ListUptimeCheckIpsResponse/uptimeCheckIps/uptime_check_ip": uptime_check_ip
"/monitoring:v3/Metric": metric
"/monitoring:v3/Metric/labels": labels
"/monitoring:v3/Metric/labels/label": label
@ -47404,6 +47461,9 @@
"/monitoring:v3/Range": range
"/monitoring:v3/Range/max": max
"/monitoring:v3/Range/min": min
"/monitoring:v3/ResourceGroup": resource_group
"/monitoring:v3/ResourceGroup/groupId": group_id
"/monitoring:v3/ResourceGroup/resourceType": resource_type
"/monitoring:v3/SourceContext": source_context
"/monitoring:v3/SourceContext/fileName": file_name
"/monitoring:v3/Status": status
@ -47412,6 +47472,8 @@
"/monitoring:v3/Status/details/detail": detail
"/monitoring:v3/Status/details/detail/detail": detail
"/monitoring:v3/Status/message": message
"/monitoring:v3/TcpCheck": tcp_check
"/monitoring:v3/TcpCheck/port": port
"/monitoring:v3/TimeInterval": time_interval
"/monitoring:v3/TimeInterval/endTime": end_time
"/monitoring:v3/TimeInterval/startTime": start_time
@ -47438,6 +47500,23 @@
"/monitoring:v3/TypedValue/doubleValue": double_value
"/monitoring:v3/TypedValue/int64Value": int64_value
"/monitoring:v3/TypedValue/stringValue": string_value
"/monitoring:v3/UptimeCheckConfig": uptime_check_config
"/monitoring:v3/UptimeCheckConfig/contentMatchers": content_matchers
"/monitoring:v3/UptimeCheckConfig/contentMatchers/content_matcher": content_matcher
"/monitoring:v3/UptimeCheckConfig/displayName": display_name
"/monitoring:v3/UptimeCheckConfig/httpCheck": http_check
"/monitoring:v3/UptimeCheckConfig/monitoredResource": monitored_resource
"/monitoring:v3/UptimeCheckConfig/name": name
"/monitoring:v3/UptimeCheckConfig/period": period
"/monitoring:v3/UptimeCheckConfig/resourceGroup": resource_group
"/monitoring:v3/UptimeCheckConfig/selectedRegions": selected_regions
"/monitoring:v3/UptimeCheckConfig/selectedRegions/selected_region": selected_region
"/monitoring:v3/UptimeCheckConfig/tcpCheck": tcp_check
"/monitoring:v3/UptimeCheckConfig/timeout": timeout
"/monitoring:v3/UptimeCheckIp": uptime_check_ip
"/monitoring:v3/UptimeCheckIp/ipAddress": ip_address
"/monitoring:v3/UptimeCheckIp/location": location
"/monitoring:v3/UptimeCheckIp/region": region
"/monitoring:v3/fields": fields
"/monitoring:v3/key": key
"/monitoring:v3/monitoring.projects.collectdTimeSeries.create": create_collectd_time_series
@ -47499,6 +47578,24 @@
"/monitoring:v3/monitoring.projects.timeSeries.list/pageSize": page_size
"/monitoring:v3/monitoring.projects.timeSeries.list/pageToken": page_token
"/monitoring:v3/monitoring.projects.timeSeries.list/view": view
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.create": create_project_uptime_check_config
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.create/parent": parent
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.delete": delete_project_uptime_check_config
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.delete/name": name
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.get": get_project_uptime_check_config
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.get/name": name
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.list": list_project_uptime_check_configs
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.list/filter": filter
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.list/pageSize": page_size
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.list/pageToken": page_token
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.list/parent": parent
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.patch": patch_project_uptime_check_config
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.patch/name": name
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.patch/name1": name1
"/monitoring:v3/monitoring.projects.uptimeCheckConfigs.patch/updateMask": update_mask
"/monitoring:v3/monitoring.uptimeCheckIps.list": list_uptime_check_ips
"/monitoring:v3/monitoring.uptimeCheckIps.list/pageSize": page_size
"/monitoring:v3/monitoring.uptimeCheckIps.list/pageToken": page_token
"/monitoring:v3/quotaUser": quota_user
"/mybusiness:v3/Account": account
"/mybusiness:v3/Account/accountName": account_name
@ -62690,6 +62787,16 @@
"/youtubePartner:v1/ShowDetails/episodeTitle": episode_title
"/youtubePartner:v1/ShowDetails/seasonNumber": season_number
"/youtubePartner:v1/ShowDetails/title": title
"/youtubePartner:v1/SpreadsheetTemplate": spreadsheet_template
"/youtubePartner:v1/SpreadsheetTemplate/kind": kind
"/youtubePartner:v1/SpreadsheetTemplate/status": status
"/youtubePartner:v1/SpreadsheetTemplate/templateContent": template_content
"/youtubePartner:v1/SpreadsheetTemplate/templateName": template_name
"/youtubePartner:v1/SpreadsheetTemplate/templateType": template_type
"/youtubePartner:v1/SpreadsheetTemplateListResponse": spreadsheet_template_list_response
"/youtubePartner:v1/SpreadsheetTemplateListResponse/items": items
"/youtubePartner:v1/SpreadsheetTemplateListResponse/items/item": item
"/youtubePartner:v1/SpreadsheetTemplateListResponse/kind": kind
"/youtubePartner:v1/StateCompleted": state_completed
"/youtubePartner:v1/StateCompleted/state": state
"/youtubePartner:v1/StateCompleted/timeCompleted": time_completed
@ -63019,6 +63126,9 @@
"/youtubePartner:v1/youtubePartner.references.update/onBehalfOfContentOwner": on_behalf_of_content_owner
"/youtubePartner:v1/youtubePartner.references.update/referenceId": reference_id
"/youtubePartner:v1/youtubePartner.references.update/releaseClaims": release_claims
"/youtubePartner:v1/youtubePartner.spreadsheetTemplate.list": list_spreadsheet_templates
"/youtubePartner:v1/youtubePartner.spreadsheetTemplate.list/locale": locale
"/youtubePartner:v1/youtubePartner.spreadsheetTemplate.list/onBehalfOfContentOwner": on_behalf_of_content_owner
"/youtubePartner:v1/youtubePartner.uploader.list": list_uploaders
"/youtubePartner:v1/youtubePartner.uploader.list/onBehalfOfContentOwner": on_behalf_of_content_owner
"/youtubePartner:v1/youtubePartner.validator.validate": validate_validator

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20170830'
REVISION = '20171006'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -96,6 +96,73 @@ module Google
end
end
# JSON template for App Access Collections Resource object in Directory API.
class AppAccessCollections
include Google::Apis::Core::Hashable
# List of blocked api access buckets.
# Corresponds to the JSON property `blockedApiAccessBuckets`
# @return [Array<String>]
attr_accessor :blocked_api_access_buckets
# Boolean to indicate whether to enforce app access settings on Android Drive or
# not.
# Corresponds to the JSON property `enforceSettingsForAndroidDrive`
# @return [Boolean]
attr_accessor :enforce_settings_for_android_drive
alias_method :enforce_settings_for_android_drive?, :enforce_settings_for_android_drive
# Error message provided by the Admin that will be shown to the user when an app
# is blocked.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as an app access collection. Value: admin#directory#
# appaccesscollection
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Unique ID of app access collection. (Readonly)
# Corresponds to the JSON property `resourceId`
# @return [Fixnum]
attr_accessor :resource_id
# Resource name given by the customer while creating/updating. Should be unique
# under given customer.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Boolean that indicates whether to trust domain owned apps.
# Corresponds to the JSON property `trustDomainOwnedApps`
# @return [Boolean]
attr_accessor :trust_domain_owned_apps
alias_method :trust_domain_owned_apps?, :trust_domain_owned_apps
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@blocked_api_access_buckets = args[:blocked_api_access_buckets] if args.key?(:blocked_api_access_buckets)
@enforce_settings_for_android_drive = args[:enforce_settings_for_android_drive] if args.key?(:enforce_settings_for_android_drive)
@error_message = args[:error_message] if args.key?(:error_message)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@trust_domain_owned_apps = args[:trust_domain_owned_apps] if args.key?(:trust_domain_owned_apps)
end
end
# The template that returns individual ASP (Access Code) data.
class Asp
include Google::Apis::Core::Hashable
@ -2328,6 +2395,86 @@ module Google
end
end
# JSON template for Trusted App Ids Resource object in Directory API.
class TrustedAppId
include Google::Apis::Core::Hashable
# Android package name.
# Corresponds to the JSON property `androidPackageName`
# @return [String]
attr_accessor :android_package_name
# SHA1 signature of the app certificate.
# Corresponds to the JSON property `certificateHashSHA1`
# @return [String]
attr_accessor :certificate_hash_sha1
# SHA256 signature of the app certificate.
# Corresponds to the JSON property `certificateHashSHA256`
# @return [String]
attr_accessor :certificate_hash_sha256
#
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as a trusted AppId.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_package_name = args[:android_package_name] if args.key?(:android_package_name)
@certificate_hash_sha1 = args[:certificate_hash_sha1] if args.key?(:certificate_hash_sha1)
@certificate_hash_sha256 = args[:certificate_hash_sha256] if args.key?(:certificate_hash_sha256)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
end
end
# JSON template for Trusted Apps response object of a user in Directory API.
class TrustedApps
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as trusted apps response.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Trusted Apps list.
# Corresponds to the JSON property `trustedApps`
# @return [Array<Google::Apis::AdminDirectoryV1::TrustedAppId>]
attr_accessor :trusted_apps
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@trusted_apps = args[:trusted_apps] if args.key?(:trusted_apps)
end
end
# JSON template for User object in Directory API.
class User
include Google::Apis::Core::Hashable

View File

@ -34,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AppAccessCollections
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Asp
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -286,6 +292,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TrustedAppId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrustedApps
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -444,6 +462,20 @@ module Google
end
end
class AppAccessCollections
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocked_api_access_buckets, as: 'blockedApiAccessBuckets'
property :enforce_settings_for_android_drive, as: 'enforceSettingsForAndroidDrive'
property :error_message, as: 'errorMessage'
property :etag, as: 'etag'
property :kind, as: 'kind'
property :resource_id, :numeric_string => true, as: 'resourceId'
property :resource_name, as: 'resourceName'
property :trust_domain_owned_apps, as: 'trustDomainOwnedApps'
end
end
class Asp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -998,6 +1030,28 @@ module Google
end
end
class TrustedAppId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_package_name, as: 'androidPackageName'
property :certificate_hash_sha1, as: 'certificateHashSHA1'
property :certificate_hash_sha256, as: 'certificateHashSHA256'
property :etag, as: 'etag'
property :kind, as: 'kind'
end
end
class TrustedApps
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :trusted_apps, as: 'trustedApps', class: Google::Apis::AdminDirectoryV1::TrustedAppId, decorator: Google::Apis::AdminDirectoryV1::TrustedAppId::Representation
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2099,6 +2099,70 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves resolved app access settings of the logged in 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdminDirectoryV1::AppAccessCollections] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::AppAccessCollections]
#
# @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_resolved_app_access_setting_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'resolvedappaccesssettings', options)
command.response_representation = Google::Apis::AdminDirectoryV1::AppAccessCollections::Representation
command.response_class = Google::Apis::AdminDirectoryV1::AppAccessCollections
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of apps trusted by the admin of the logged in 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdminDirectoryV1::TrustedApps] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::TrustedApps]
#
# @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_resolved_app_access_setting_trusted_apps(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trustedapps', options)
command.response_representation = Google::Apis::AdminDirectoryV1::TrustedApps::Representation
command.response_class = Google::Apis::AdminDirectoryV1::TrustedApps
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a calendar resource.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,
@ -2256,7 +2320,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a calendar resource. This method supports patch semantics.
# Updates a calendar resource.
# This method supports patch semantics, meaning you only need to include the
# fields you wish to update. Fields that are not present in the request will be
# preserved. This method supports patch semantics.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
@ -2299,6 +2366,9 @@ module Google
end
# Updates a calendar resource.
# This method supports patch semantics, meaning you only need to include the
# fields you wish to update. Fields that are not present in the request will be
# preserved.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
REVISION = '20170926'
REVISION = '20171009'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -157,6 +157,12 @@ module Google
# @return [String]
attr_accessor :source_repository_url
# The Google Cloud Storage signed URL used for source uploading, generated
# by google.cloud.functions.v1beta2.GenerateUploadUrl
# Corresponds to the JSON property `sourceUploadUrl`
# @return [String]
attr_accessor :source_upload_url
# Output only. Status of the function deployment.
# Corresponds to the JSON property `status`
# @return [String]
@ -198,6 +204,7 @@ module Google
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
@source_repository = args[:source_repository] if args.key?(:source_repository)
@source_repository_url = args[:source_repository_url] if args.key?(:source_repository_url)
@source_upload_url = args[:source_upload_url] if args.key?(:source_upload_url)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@update_time = args[:update_time] if args.key?(:update_time)
@ -282,6 +289,79 @@ module Google
end
end
# Request of `GenerateDownloadUrl` method.
class GenerateDownloadUrlRequest
include Google::Apis::Core::Hashable
# The optional version of function.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Response of `GenerateDownloadUrl` method.
class GenerateDownloadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for
# function source code download.
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_url = args[:download_url] if args.key?(:download_url)
end
end
# Request of `GenerateUploadUrl` method.
class GenerateUploadUrlRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response of `GenerateUploadUrl` method.
class GenerateUploadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for a
# function source code upload. The uploaded file should be a zip archive
# which contains a function.
# Corresponds to the JSON property `uploadUrl`
# @return [String]
attr_accessor :upload_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@upload_url = args[:upload_url] if args.key?(:upload_url)
end
end
# Describes HTTPSTrigger, could be used to connect web hooks to function.
class HttpsTrigger
include Google::Apis::Core::Hashable

View File

@ -52,6 +52,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpsTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -145,6 +169,7 @@ module Google
property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1beta2::SourceRepository, decorator: Google::Apis::CloudfunctionsV1beta2::SourceRepository::Representation
property :source_repository_url, as: 'sourceRepositoryUrl'
property :source_upload_url, as: 'sourceUploadUrl'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :update_time, as: 'updateTime'
@ -171,6 +196,33 @@ module Google
end
end
class GenerateDownloadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class GenerateDownloadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :download_url, as: 'downloadUrl'
end
end
class GenerateUploadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GenerateUploadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :upload_url, as: 'uploadUrl'
end
end
class HttpsTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -268,6 +268,83 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a signed URL for downloading deployed function source code.
# The URL is only valid for a limited period and should be used within
# minutes after generation.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# @param [String] name
# The name of function for which source code Google Cloud Storage signed
# URL should be generated.
# @param [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlRequest] generate_download_url_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::CloudfunctionsV1beta2::GenerateDownloadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse]
#
# @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 generate_function_download_url(name, generate_download_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+name}:generateDownloadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlRequest::Representation
command.request_object = generate_download_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a signed URL for uploading a function source code.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# Once the function source code upload is complete, the used signed
# URL should be provided in CreateFunction or UpdateFunction request
# as a reference to the function source code.
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*
# @param [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlRequest] generate_upload_url_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::CloudfunctionsV1beta2::GenerateUploadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse]
#
# @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 generate_function_upload_url(parent, generate_upload_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+parent}/functions:generateUploadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlRequest::Representation
command.request_object = generate_upload_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse
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
# Returns a function with the given name from the requested project.
# @param [String] name
# The name of the function which details should be obtained.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20170922'
REVISION = '20170929'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20171003'
REVISION = '20171010'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -286,18 +286,18 @@ module Google
class ClusterOperation
include Google::Apis::Core::Hashable
# Output-only Indicates the operation is done.
# Output only. Indicates the operation is done.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# Output-only Error, if operation failed.
# Output only. Error, if operation failed.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Output-only The id of the cluster operation.
# Output only. The id of the cluster operation.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
@ -416,12 +416,14 @@ module Google
class ClusterSelector
include Google::Apis::Core::Hashable
# Required The cluster labels. Cluster must have all labels to match.
# Required. The cluster labels. Cluster must have all labels to match.
# Corresponds to the JSON property `clusterLabels`
# @return [Hash<String,String>]
attr_accessor :cluster_labels
# Required The cluster target zone.
# Optional. The zone where workflow process executes. This parameter does not
# affect the selection of the cluster.If unspecified, the zone of the first
# cluster matching the selector is used.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -877,7 +879,7 @@ module Google
class InstantiateWorkflowTemplateRequest
include Google::Apis::Core::Hashable
# Optional A tag that prevents multiple concurrent workflow instances with the
# Optional. A tag that prevents multiple concurrent workflow instances with the
# same tag from running. This mitigates risk of concurrent instances started due
# to retries.It is recommended to always set this value to a UUID (https://en.
# wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only
@ -887,7 +889,7 @@ module Google
# @return [String]
attr_accessor :instance_id
# Optional The version of workflow template to instantiate. If specified, the
# Optional. The version of workflow template to instantiate. If specified, the
# workflow will be instantiated only if the current version of the workflow
# template has the supplied version.This option cannot be used to instantiate a
# previous version of workflow template.
@ -1260,14 +1262,14 @@ module Google
class ListWorkflowTemplatesResponse
include Google::Apis::Core::Hashable
# Output-only This token is included in the response if there are more results
# Output only. This token is included in the response if there are more results
# to fetch. To fetch additional results, provide this value as the page_token in
# a subsequent <code>ListWorkflowTemplatesRequest</code>.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Output-only WorkflowTemplates list.
# Output only. WorkflowTemplates list.
# Corresponds to the JSON property `templates`
# @return [Array<Google::Apis::DataprocV1beta2::WorkflowTemplate>]
attr_accessor :templates
@ -1308,7 +1310,7 @@ module Google
class ManagedCluster
include Google::Apis::Core::Hashable
# Required The cluster name. Cluster names within a project must be unique.
# Required. The cluster name. Cluster names within a project must be unique.
# Names from deleted clusters can be reused.
# Corresponds to the JSON property `clusterName`
# @return [String]
@ -1319,7 +1321,7 @@ module Google
# @return [Google::Apis::DataprocV1beta2::ClusterConfig]
attr_accessor :config
# Optional The labels to associate with this cluster.Label keys must be between
# Optional. The labels to associate with this cluster.Label keys must be between
# 1 and 63 characters long, and must conform to the following PCRE regular
# expression: \p`Ll`\p`Lo``0,62`Label values must be between 1 and 63 characters
# long, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo`\
@ -1503,7 +1505,7 @@ module Google
# @return [Google::Apis::DataprocV1beta2::HiveJob]
attr_accessor :hive_job
# Optional The labels to associate with this job.Label keys must be between 1
# Optional. The labels to associate with this job.Label keys must be between 1
# and 63 characters long, and must conform to the following regular expression: \
# p`Ll`\p`Lo``0,62`Label values must be between 1 and 63 characters long, and
# must conform to the following regular expression: \p`Ll`\p`Lo`\p`N`_-`0,63`No
@ -1518,8 +1520,8 @@ module Google
# @return [Google::Apis::DataprocV1beta2::PigJob]
attr_accessor :pig_job
# Optional The optional list of prerequisite job step_ids. If not specified, the
# job will start at the beginning of workflow.
# Optional. The optional list of prerequisite job step_ids. If not specified,
# the job will start at the beginning of workflow.
# Corresponds to the JSON property `prerequisiteStepIds`
# @return [Array<String>]
attr_accessor :prerequisite_step_ids
@ -1548,9 +1550,9 @@ module Google
# @return [Google::Apis::DataprocV1beta2::SparkSqlJob]
attr_accessor :spark_sql_job
# Required The step id. The id must be unique among all jobs within the template.
# The step id is used as prefix for job id, as job workflow-step-id label, and
# in prerequisite_step_ids field from other steps.
# Required. The step id. The id must be unique among all jobs within the
# template.The step id is used as prefix for job id, as job workflow-step-id
# label, and in prerequisite_step_ids field from other steps.
# Corresponds to the JSON property `stepId`
# @return [String]
attr_accessor :step_id
@ -2139,7 +2141,7 @@ module Google
class WorkflowGraph
include Google::Apis::Core::Hashable
# Output-only The workflow nodes.
# Output only. The workflow nodes.
# Corresponds to the JSON property `nodes`
# @return [Array<Google::Apis::DataprocV1beta2::WorkflowNode>]
attr_accessor :nodes
@ -2158,17 +2160,17 @@ module Google
class WorkflowMetadata
include Google::Apis::Core::Hashable
# Output-only The name of the managed cluster.
# Output only. The name of the managed cluster.
# Corresponds to the JSON property `clusterName`
# @return [String]
attr_accessor :cluster_name
# Output-only The create cluster operation metadata.
# Output only. The create cluster operation metadata.
# Corresponds to the JSON property `createCluster`
# @return [Google::Apis::DataprocV1beta2::ClusterOperation]
attr_accessor :create_cluster
# Output-only The delete cluster operation metadata.
# Output only. The delete cluster operation metadata.
# Corresponds to the JSON property `deleteCluster`
# @return [Google::Apis::DataprocV1beta2::ClusterOperation]
attr_accessor :delete_cluster
@ -2178,17 +2180,17 @@ module Google
# @return [Google::Apis::DataprocV1beta2::WorkflowGraph]
attr_accessor :graph
# Output-only The workflow state.
# Output only. The workflow state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output-only The "resource name" of the template.
# Output only. The "resource name" of the template.
# Corresponds to the JSON property `template`
# @return [String]
attr_accessor :template
# Output-only The version of template at the time of workflow instantiation.
# Output only. The version of template at the time of workflow instantiation.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -2213,27 +2215,27 @@ module Google
class WorkflowNode
include Google::Apis::Core::Hashable
# Output-only The error detail.
# Output only. The error detail.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Output-only The job id; populated after the node enters RUNNING state.
# Output only. The job id; populated after the node enters RUNNING state.
# Corresponds to the JSON property `jobId`
# @return [String]
attr_accessor :job_id
# Output-only Node's prerequisite nodes.
# Output only. Node's prerequisite nodes.
# Corresponds to the JSON property `prerequisiteStepIds`
# @return [Array<String>]
attr_accessor :prerequisite_step_ids
# Output-only The node state.
# Output only. The node state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output-only The name of the node.
# Output only. The name of the node.
# Corresponds to the JSON property `stepId`
# @return [String]
attr_accessor :step_id
@ -2256,22 +2258,22 @@ module Google
class WorkflowTemplate
include Google::Apis::Core::Hashable
# Output-only The time template was created.
# Output only. The time template was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required The template id.
# Required. The template id.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Required The Directed Acyclic Graph of Jobs to submit.
# Required. The Directed Acyclic Graph of Jobs to submit.
# Corresponds to the JSON property `jobs`
# @return [Array<Google::Apis::DataprocV1beta2::OrderedJob>]
attr_accessor :jobs
# Optional The labels to associate with this template. These labels will be
# Optional. The labels to associate with this template. These labels will be
# propagated to all jobs and clusters created by the workflow instance.Label
# keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://
# www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must
@ -2281,8 +2283,8 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# Output-only The "resource name" of the template, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# Output only. The "resource name" of the template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# Corresponds to the JSON property `name`
# @return [String]
@ -2294,12 +2296,12 @@ module Google
# @return [Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement]
attr_accessor :placement
# Output-only The time template was last updated.
# Output only. The time template was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Optional Used to perform a consistent read-modify-write.This field should be
# Optional. Used to perform a consistent read-modify-write.This field should be
# left blank for a CreateWorkflowTemplate request. It is required for an
# UpdateWorkflowTemplate request, and must match the current server version. A
# typical update template flow would fetch the current template with a

View File

@ -49,7 +49,7 @@ module Google
# Creates new workflow template.
# @param [String] parent
# Required The "resource name" of the region, as described in https://cloud.
# Required. The "resource name" of the region, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
@ -84,11 +84,11 @@ module Google
# Deletes a workflow template. It does not cancel in-progress workflows.
# @param [String] name
# Required The "resource name" of the workflow template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# Required. The "resource name" of the workflow template, as described in https:/
# /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Fixnum] version
# Optional The version of workflow template to delete. If specified, will only
# Optional. The version of workflow template to delete. If specified, will only
# delete the template if the current server version matches specified version.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -121,11 +121,11 @@ module Google
# Retrieves the latest workflow template.Can retrieve previously instantiated
# template by specifying optional version parameter.
# @param [String] name
# Required The "resource name" of the workflow template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# Required. The "resource name" of the workflow template, as described in https:/
# /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Fixnum] version
# Optional The version of workflow template to retrieve. Only previously
# Optional. The version of workflow template to retrieve. Only previously
# instatiated versions can be retrieved.If unspecified, retrieves the current
# version.
# @param [String] fields
@ -165,8 +165,8 @@ module Google
# WorkflowMetadata.The google.cloud.dataproc.v1beta2.Operation.result will
# always be google.protobuf.Empty.
# @param [String] name
# Required The "resource name" of the workflow template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# Required. The "resource name" of the workflow template, as described in https:/
# /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_request_object
# @param [String] fields
@ -200,14 +200,14 @@ module Google
# Lists workflows that match the specified filter in the request.
# @param [String] parent
# Required The "resource name" of the region, as described in https://cloud.
# Required. The "resource name" of the region, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`
# @param [Fixnum] page_size
# Optional The maximum number of results to return in each response.
# Optional. The maximum number of results to return in each response.
# @param [String] page_token
# Optional The page token, returned by a previous call, to request the next page
# of results.
# Optional. The page token, returned by a previous call, to request the next
# page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -240,8 +240,8 @@ module Google
# Updates (replaces) workflow template. The updated template must contain
# version that matches the current server version.
# @param [String] name
# Output-only The "resource name" of the template, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# Output only. The "resource name" of the template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
# @param [String] fields
@ -1064,7 +1064,7 @@ module Google
# Creates new workflow template.
# @param [String] parent
# Required The "resource name" of the region, as described in https://cloud.
# Required. The "resource name" of the region, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
@ -1099,11 +1099,11 @@ module Google
# Deletes a workflow template. It does not cancel in-progress workflows.
# @param [String] name
# Required The "resource name" of the workflow template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# Required. The "resource name" of the workflow template, as described in https:/
# /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Fixnum] version
# Optional The version of workflow template to delete. If specified, will only
# Optional. The version of workflow template to delete. If specified, will only
# delete the template if the current server version matches specified version.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1136,11 +1136,11 @@ module Google
# Retrieves the latest workflow template.Can retrieve previously instantiated
# template by specifying optional version parameter.
# @param [String] name
# Required The "resource name" of the workflow template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# Required. The "resource name" of the workflow template, as described in https:/
# /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Fixnum] version
# Optional The version of workflow template to retrieve. Only previously
# Optional. The version of workflow template to retrieve. Only previously
# instatiated versions can be retrieved.If unspecified, retrieves the current
# version.
# @param [String] fields
@ -1180,8 +1180,8 @@ module Google
# WorkflowMetadata.The google.cloud.dataproc.v1beta2.Operation.result will
# always be google.protobuf.Empty.
# @param [String] name
# Required The "resource name" of the workflow template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# Required. The "resource name" of the workflow template, as described in https:/
# /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_request_object
# @param [String] fields
@ -1215,14 +1215,14 @@ module Google
# Lists workflows that match the specified filter in the request.
# @param [String] parent
# Required The "resource name" of the region, as described in https://cloud.
# Required. The "resource name" of the region, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`
# @param [Fixnum] page_size
# Optional The maximum number of results to return in each response.
# Optional. The maximum number of results to return in each response.
# @param [String] page_token
# Optional The page token, returned by a previous call, to request the next page
# of results.
# Optional. The page token, returned by a previous call, to request the next
# page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1255,8 +1255,8 @@ module Google
# Updates (replaces) workflow template. The updated template must contain
# version that matches the current server version.
# @param [String] name
# Output-only The "resource name" of the template, as described in https://cloud.
# google.com/apis/design/resource_names of the form projects/`project_id`/
# Output only. The "resource name" of the template, as described in https://
# cloud.google.com/apis/design/resource_names of the form projects/`project_id`/
# regions/`region`/workflowTemplates/`template_id`
# @param [Google::Apis::DataprocV1beta2::WorkflowTemplate] workflow_template_object
# @param [String] fields

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20171001'
REVISION = '20171010'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,33 @@ module Google
module Apis
module MonitoringV3
# A type of authentication to perform against the specified resource or URL that
# uses username and password. Currently, only Basic authentication is supported
# in Uptime Monitoring.
class BasicAuthentication
include Google::Apis::Core::Hashable
# The password to authenticate.
# Corresponds to the JSON property `password`
# @return [String]
attr_accessor :password
# The username to authenticate.
# 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)
@password = args[:password] if args.key?(:password)
@username = args[:username] if args.key?(:username)
end
end
# BucketOptions describes the bucket boundaries used to create a histogram for
# the distribution. The buckets can be in a linear sequence, an exponential
# sequence, or each bucket can be specified explicitly. BucketOptions does not
@ -300,6 +327,27 @@ module Google
end
end
# Used to perform string matching. Currently, this matches on the exact content.
# In the future, it can be expanded to allow for regular expressions and more
# complex matching.
class ContentMatcher
include Google::Apis::Core::Hashable
# String content to match
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content = args[:content] if args.key?(:content)
end
end
# The CreateCollectdTimeSeries request.
class CreateCollectdTimeSeriesRequest
include Google::Apis::Core::Hashable
@ -698,6 +746,72 @@ module Google
end
end
# Information involved in an HTTP/HTTPS uptime check request.
class HttpCheck
include Google::Apis::Core::Hashable
# A type of authentication to perform against the specified resource or URL that
# uses username and password. Currently, only Basic authentication is supported
# in Uptime Monitoring.
# Corresponds to the JSON property `authInfo`
# @return [Google::Apis::MonitoringV3::BasicAuthentication]
attr_accessor :auth_info
# The list of headers to send as part of the uptime check request. If two
# headers have the same key and different values, they should be entered as a
# single header, with the value being a comma-separated list of all the desired
# values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page
# 31). Entering two separate headers with the same key in a Create call will
# cause the first to be overwritten by the second.
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
# Boolean specifiying whether to encrypt the header information. Encryption
# should be specified for any headers related to authentication that you do not
# wish to be seen when retrieving the configuration. The server will be
# responsible for encrypting the headers. On Get/List calls, if mask_headers is
# set to True then the headers will be obscured with ******.
# Corresponds to the JSON property `maskHeaders`
# @return [Boolean]
attr_accessor :mask_headers
alias_method :mask_headers?, :mask_headers
# The path to the page to run the check against. Will be combined with the host (
# specified within the MonitoredResource) and port to construct the full URL.
# Optional (defaults to "/").
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# The port to the page to run the check against. Will be combined with host (
# specified within the MonitoredResource) and path to construct the full URL.
# Optional (defaults to 80 without SSL, or 443 with SSL).
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# If true, use HTTPS instead of HTTP to run the check.
# Corresponds to the JSON property `useSsl`
# @return [Boolean]
attr_accessor :use_ssl
alias_method :use_ssl?, :use_ssl
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auth_info = args[:auth_info] if args.key?(:auth_info)
@headers = args[:headers] if args.key?(:headers)
@mask_headers = args[:mask_headers] if args.key?(:mask_headers)
@path = args[:path] if args.key?(:path)
@port = args[:port] if args.key?(:port)
@use_ssl = args[:use_ssl] if args.key?(:use_ssl)
end
end
# A description of a label.
class LabelDescriptor
include Google::Apis::Core::Hashable
@ -908,6 +1022,65 @@ module Google
end
end
# The protocol for the ListUptimeCheckConfigs response.
class ListUptimeCheckConfigsResponse
include Google::Apis::Core::Hashable
# This field represents the pagination token to retrieve the next page of
# results. If the value is empty, it means no further results for the request.
# To retrieve the next page of results, the value of the next_page_token is
# passed to the subsequent List method call (in the request message's page_token
# field).
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The returned uptime check configurations.
# Corresponds to the JSON property `uptimeCheckConfigs`
# @return [Array<Google::Apis::MonitoringV3::UptimeCheckConfig>]
attr_accessor :uptime_check_configs
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)
@uptime_check_configs = args[:uptime_check_configs] if args.key?(:uptime_check_configs)
end
end
# The protocol for the ListUptimeCheckIps response.
class ListUptimeCheckIpsResponse
include Google::Apis::Core::Hashable
# This field represents the pagination token to retrieve the next page of
# results. If the value is empty, it means no further results for the request.
# To retrieve the next page of results, the value of the next_page_token is
# passed to the subsequent List method call (in the request message's page_token
# field). NOTE: this field is not yet implemented
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The returned list of IP addresses (including region and location) that the
# checkers run from.
# Corresponds to the JSON property `uptimeCheckIps`
# @return [Array<Google::Apis::MonitoringV3::UptimeCheckIp>]
attr_accessor :uptime_check_ips
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)
@uptime_check_ips = args[:uptime_check_ips] if args.key?(:uptime_check_ips)
end
end
# A specific metric, identified by specifying values for all of the labels of a
# MetricDescriptor.
class Metric
@ -1242,6 +1415,33 @@ module Google
end
end
# The resource submessage for group checks. It can be used instead of a
# monitored resource, when multiple resources are being monitored.
class ResourceGroup
include Google::Apis::Core::Hashable
# The group of resources being monitored. Should be only the group_id, not
# projects/<project_id>/groups/<group_id>.
# Corresponds to the JSON property `groupId`
# @return [String]
attr_accessor :group_id
# The resource type of the group members.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@group_id = args[:group_id] if args.key?(:group_id)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end
# SourceContext represents information about the source of a protobuf element,
# like the file in which it is defined.
class SourceContext
@ -1330,6 +1530,26 @@ module Google
end
end
# Information required for a TCP uptime check request.
class TcpCheck
include Google::Apis::Core::Hashable
# The port to the page to run the check against. Will be combined with host (
# specified within the MonitoredResource) to construct the full URL. Required.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@port = args[:port] if args.key?(:port)
end
end
# A time interval extending just after a start time through an end time. If the
# start time is the same as the end time, then the interval represents a single
# point in time.
@ -1536,6 +1756,144 @@ module Google
@string_value = args[:string_value] if args.key?(:string_value)
end
end
# This message configures which resources and services to monitor for
# availability.
class UptimeCheckConfig
include Google::Apis::Core::Hashable
# The expected content on the page the check is run against. Currently, only the
# first entry in the list is supported, and other entries will be ignored. The
# server will look for an exact match of the string in the page response's
# content. This field is optional and should only be specified if a content
# match is required.
# Corresponds to the JSON property `contentMatchers`
# @return [Array<Google::Apis::MonitoringV3::ContentMatcher>]
attr_accessor :content_matchers
# A human-friendly name for the uptime check configuration. The display name
# should be unique within a Stackdriver Account in order to make it easier to
# identify; however, uniqueness is not enforced. Required.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Information involved in an HTTP/HTTPS uptime check request.
# Corresponds to the JSON property `httpCheck`
# @return [Google::Apis::MonitoringV3::HttpCheck]
attr_accessor :http_check
# An object representing a resource that can be used for monitoring, logging,
# billing, or other purposes. Examples include virtual machine instances,
# databases, and storage devices such as disks. The type field identifies a
# MonitoredResourceDescriptor object that describes the resource's schema.
# Information in the labels field identifies the actual resource and its
# attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
# zone":
# ` "type": "gce_instance",
# "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" ``
# Corresponds to the JSON property `monitoredResource`
# @return [Google::Apis::MonitoringV3::MonitoredResource]
attr_accessor :monitored_resource
# A unique resource name for this UptimeCheckConfig. The format is:projects/[
# PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted
# when creating the uptime check configuration; on create, the resource name is
# assigned by the server and included in the response.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# How often the uptime check is performed. Currently, only 1, 5, 10, and 15
# minutes are supported. Required.
# Corresponds to the JSON property `period`
# @return [String]
attr_accessor :period
# The resource submessage for group checks. It can be used instead of a
# monitored resource, when multiple resources are being monitored.
# Corresponds to the JSON property `resourceGroup`
# @return [Google::Apis::MonitoringV3::ResourceGroup]
attr_accessor :resource_group
# The list of regions from which the check will be run. If this field is
# specified, enough regions to include a minimum of 3 locations must be provided,
# or an error message is returned. Not specifying this field will result in
# uptime checks running from all regions.
# Corresponds to the JSON property `selectedRegions`
# @return [Array<String>]
attr_accessor :selected_regions
# Information required for a TCP uptime check request.
# Corresponds to the JSON property `tcpCheck`
# @return [Google::Apis::MonitoringV3::TcpCheck]
attr_accessor :tcp_check
# The maximum amount of time to wait for the request to complete (must be
# between 1 and 60 seconds). Required.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content_matchers = args[:content_matchers] if args.key?(:content_matchers)
@display_name = args[:display_name] if args.key?(:display_name)
@http_check = args[:http_check] if args.key?(:http_check)
@monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource)
@name = args[:name] if args.key?(:name)
@period = args[:period] if args.key?(:period)
@resource_group = args[:resource_group] if args.key?(:resource_group)
@selected_regions = args[:selected_regions] if args.key?(:selected_regions)
@tcp_check = args[:tcp_check] if args.key?(:tcp_check)
@timeout = args[:timeout] if args.key?(:timeout)
end
end
# Contains the region, location, and list of IP addresses where checkers in the
# location run from.
class UptimeCheckIp
include Google::Apis::Core::Hashable
# The IP address from which the uptime check originates. This is a full IP
# address (not an IP address range). Most IP addresses, as of this publication,
# are in IPv4 format; however, one should not rely on the IP addresses being in
# IPv4 format indefinitely and should support interpreting this field in either
# IPv4 or IPv6 format.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
# A more specific location within the region that typically encodes a particular
# city/town/metro (and its containing state/province or country) within the
# broader umbrella region category.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# A broad region category in which the IP address is located.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@location = args[:location] if args.key?(:location)
@region = args[:region] if args.key?(:region)
end
end
end
end
end

View File

@ -22,6 +22,12 @@ module Google
module Apis
module MonitoringV3
class BasicAuthentication
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BucketOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ContentMatcher
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateCollectdTimeSeriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -106,6 +118,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class HttpCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LabelDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,6 +166,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListUptimeCheckConfigsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListUptimeCheckIpsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Metric
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,6 +220,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ResourceGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TcpCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeInterval
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -226,6 +268,26 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UptimeCheckConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UptimeCheckIp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BasicAuthentication
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :password, as: 'password'
property :username, as: 'username'
end
end
class BucketOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -284,6 +346,13 @@ module Google
end
end
class ContentMatcher
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, as: 'content'
end
end
class CreateCollectdTimeSeriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -375,6 +444,19 @@ module Google
end
end
class HttpCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_info, as: 'authInfo', class: Google::Apis::MonitoringV3::BasicAuthentication, decorator: Google::Apis::MonitoringV3::BasicAuthentication::Representation
hash :headers, as: 'headers'
property :mask_headers, as: 'maskHeaders'
property :path, as: 'path'
property :port, as: 'port'
property :use_ssl, as: 'useSsl'
end
end
class LabelDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -439,6 +521,24 @@ module Google
end
end
class ListUptimeCheckConfigsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :uptime_check_configs, as: 'uptimeCheckConfigs', class: Google::Apis::MonitoringV3::UptimeCheckConfig, decorator: Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
end
end
class ListUptimeCheckIpsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :uptime_check_ips, as: 'uptimeCheckIps', class: Google::Apis::MonitoringV3::UptimeCheckIp, decorator: Google::Apis::MonitoringV3::UptimeCheckIp::Representation
end
end
class Metric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -508,6 +608,14 @@ module Google
end
end
class ResourceGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :group_id, as: 'groupId'
property :resource_type, as: 'resourceType'
end
end
class SourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -524,6 +632,13 @@ module Google
end
end
class TcpCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :port, as: 'port'
end
end
class TimeInterval
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -572,6 +687,36 @@ module Google
property :string_value, as: 'stringValue'
end
end
class UptimeCheckConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :content_matchers, as: 'contentMatchers', class: Google::Apis::MonitoringV3::ContentMatcher, decorator: Google::Apis::MonitoringV3::ContentMatcher::Representation
property :display_name, as: 'displayName'
property :http_check, as: 'httpCheck', class: Google::Apis::MonitoringV3::HttpCheck, decorator: Google::Apis::MonitoringV3::HttpCheck::Representation
property :monitored_resource, as: 'monitoredResource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
property :name, as: 'name'
property :period, as: 'period'
property :resource_group, as: 'resourceGroup', class: Google::Apis::MonitoringV3::ResourceGroup, decorator: Google::Apis::MonitoringV3::ResourceGroup::Representation
collection :selected_regions, as: 'selectedRegions'
property :tcp_check, as: 'tcpCheck', class: Google::Apis::MonitoringV3::TcpCheck, decorator: Google::Apis::MonitoringV3::TcpCheck::Representation
property :timeout, as: 'timeout'
end
end
class UptimeCheckIp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_address, as: 'ipAddress'
property :location, as: 'location'
property :region, as: 'region'
end
end
end
end
end

View File

@ -694,6 +694,246 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new uptime check configuration.
# @param [String] parent
# The project in which to create the uptime check. The format is:projects/[
# PROJECT_ID].
# @param [Google::Apis::MonitoringV3::UptimeCheckConfig] uptime_check_config_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::MonitoringV3::UptimeCheckConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::UptimeCheckConfig]
#
# @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_uptime_check_config(parent, uptime_check_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3/{+parent}/uptimeCheckConfigs', options)
command.request_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.request_object = uptime_check_config_object
command.response_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.response_class = Google::Apis::MonitoringV3::UptimeCheckConfig
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 uptime check configuration. Note that this method will fail if the
# uptime check configuration is referenced by an alert policy or other dependent
# configs that would be rendered invalid by the deletion.
# @param [String] name
# The uptime check configuration to delete. The format isprojects/[PROJECT_ID]/
# uptimeCheckConfigs/[UPTIME_CHECK_ID].
# @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::MonitoringV3::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_uptime_check_config(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v3/{+name}', options)
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
command.response_class = Google::Apis::MonitoringV3::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a single uptime check configuration.
# @param [String] name
# The uptime check configuration to retrieve. The format isprojects/[PROJECT_ID]/
# uptimeCheckConfigs/[UPTIME_CHECK_ID].
# @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::MonitoringV3::UptimeCheckConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::UptimeCheckConfig]
#
# @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_uptime_check_config(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+name}', options)
command.response_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.response_class = Google::Apis::MonitoringV3::UptimeCheckConfig
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the existing valid uptime check configurations for the project, leaving
# out any invalid configurations.
# @param [String] parent
# The project whose uptime check configurations are listed. The format
# isprojects/[PROJECT_ID].
# @param [String] filter
# If provided, specifies the criteria that must be met by uptime check
# configurations in the provided project to be included in the response. One of
# the following filters can be provided. uptime_check_config.id = `
# uptime_check_id` resource.type = gce_instance AND resource.label.instance_id =
# `instance_id` resource.type = aws_ec2_instance AND resource.label.
# instance_id = `instance_id` resource.type = aws_elb_load_balancer AND
# resource.label.name = `name` resource.type = gae_app AND resource.label.
# module_id = `module_id` resource.type = uptime_url AND resource.label.host = `
# host` group.id = `group_id`
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. The server may
# further constrain the maximum number of results returned in a single page. If
# the page_size is <=0, the server will decide the number of results to be
# returned.
# @param [String] page_token
# If this field is not empty then it must contain the nextPageToken value
# returned by a previous call to this method. Using this field causes the method
# to return more results from the previous method call.
# @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::MonitoringV3::ListUptimeCheckConfigsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::ListUptimeCheckConfigsResponse]
#
# @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_uptime_check_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+parent}/uptimeCheckConfigs', options)
command.response_representation = Google::Apis::MonitoringV3::ListUptimeCheckConfigsResponse::Representation
command.response_class = Google::Apis::MonitoringV3::ListUptimeCheckConfigsResponse
command.params['parent'] = parent unless parent.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
# Updates an uptime check configuration. You can either replace the entire
# configuration with a new one or replace only certain fields in the current
# configuration by specifying the fields to be updated via "updateMask". Returns
# the updated configuration.
# @param [String] name
# A unique resource name for this UptimeCheckConfig. The format is:projects/[
# PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted
# when creating the uptime check configuration; on create, the resource name is
# assigned by the server and included in the response.
# @param [Google::Apis::MonitoringV3::UptimeCheckConfig] uptime_check_config_object
# @param [String] name1
# The uptime check configuration to update. The format isprojects/[PROJECT_ID]/
# uptimeCheckConfigs/[UPTIME_CHECK_ID].
# @param [String] update_mask
# Optional. If present, only the listed fields in the current uptime check
# configuration are updated with values from the new configuration. If this
# field is empty, then the current configuration is completely replaced with the
# new configuration.
# @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::MonitoringV3::UptimeCheckConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::UptimeCheckConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_uptime_check_config(name, uptime_check_config_object = nil, name1: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v3/{+name}', options)
command.request_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.request_object = uptime_check_config_object
command.response_representation = Google::Apis::MonitoringV3::UptimeCheckConfig::Representation
command.response_class = Google::Apis::MonitoringV3::UptimeCheckConfig
command.params['name'] = name unless name.nil?
command.query['name1'] = name1 unless name1.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
# Returns the list of IPs that checkers run from
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. The server may
# further constrain the maximum number of results returned in a single page. If
# the page_size is <=0, the server will decide the number of results to be
# returned. NOTE: this field is not yet implemented
# @param [String] page_token
# If this field is not empty then it must contain the nextPageToken value
# returned by a previous call to this method. Using this field causes the method
# to return more results from the previous method call. NOTE: this field is not
# yet implemented
# @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::MonitoringV3::ListUptimeCheckIpsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::ListUptimeCheckIpsResponse]
#
# @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_uptime_check_ips(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/uptimeCheckIps', options)
command.response_representation = Google::Apis::MonitoringV3::ListUptimeCheckIpsResponse::Representation
command.response_class = Google::Apis::MonitoringV3::ListUptimeCheckIpsResponse
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
protected

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/
module ServicecontrolV1
VERSION = 'V1'
REVISION = '20170930'
REVISION = '20171007'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1231,8 +1231,10 @@ module Google
# Fully qualified name of the API method for which this quota operation is
# requested. This name is used for matching quota rules or metric rules and
# billing status rules defined in service configuration. This field is not
# required if the quota operation is performed on non-API resources.
# billing status rules defined in service configuration.
# This field should not be set if any of the following is true:
# (1) the quota operation is performed on non-API resources.
# (2) quota_metrics is set because the caller is doing quota override.
# Example of an RPC method name:
# google.example.library.v1.LibraryService.CreateShelf
# Corresponds to the JSON property `methodName`
@ -1259,6 +1261,7 @@ module Google
# label value combinations. If a request has such duplicated MetricValue
# instances, the entire request is rejected with
# an invalid argument error.
# This field is mutually exclusive with method_name.
# Corresponds to the JSON property `quotaMetrics`
# @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
attr_accessor :quota_metrics

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20170929'
REVISION = '20171007'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2533,6 +2533,8 @@ module Google
# A concise name for the metric, which can be displayed in user interfaces.
# Use sentence case without an ending period, for example "Request count".
# This field is optional but it is recommended to be set for any metrics
# associated with user-visible concepts, such as Quota.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
@ -2553,14 +2555,7 @@ module Google
# @return [String]
attr_accessor :metric_kind
# The resource name of the metric descriptor. Depending on the
# implementation, the name typically includes: (1) the parent resource name
# that defines the scope of the metric type or of its data; and (2) the
# metric's URL-encoded type, which also appears in the `type` field of this
# descriptor. For example, following is the resource name of a custom
# metric within the GCP project `my-project-id`:
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
# 2Fpaid%2Famount"
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -3387,22 +3382,14 @@ module Google
# The name of the metric this quota limit applies to. The quota limits with
# the same metric will be checked together during runtime. The metric must be
# defined within the service config.
# Used by metric-based quotas only.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# Name of the quota limit. The name is used to refer to the limit when
# overriding the default limit on per-consumer basis.
# For metric-based quota limits, the name must be provided, and it must be
# unique within the service. The name can only include alphanumeric
# characters as well as '-'.
# Name of the quota limit.
# The name must be provided, and it must be unique within the service. The
# name can only include alphanumeric characters as well as '-'.
# The maximum length of the limit name is 64 characters.
# The name of a limit is used as a unique identifier for this limit.
# Therefore, once a limit has been put into use, its name should be
# immutable. You can use the display_name field to provide a user-friendly
# name for the limit. The display name can be evolved over time without
# affecting the identity of the limit.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -3410,24 +3397,17 @@ module Google
# Specify the unit of the quota limit. It uses the same syntax as
# Metric.unit. The supported unit kinds are determined by the quota
# backend system.
# The [Google Service Control](https://cloud.google.com/service-control)
# supports the following unit components:
# * One of the time intevals:
# * "/min" for quota every minute.
# * "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
# * Otherwise the quota won't be reset by time, such as storage limit.
# * One and only one of the granted containers:
# * "/`project`" quota for a project
# Here are some examples:
# * "1/min/`project`" for quota per minute per project.
# Note: the order of unit components is insignificant.
# The "1" at the beginning is required to follow the metric unit syntax.
# Used by metric-based quotas only.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# Tiered limit values, currently only STANDARD is supported.
# Tiered limit values. You must specify this as a key:value pair, with an
# integer value that is the maximum number of requests allowed for the
# specified unit. Currently only STANDARD is supported.
# Corresponds to the JSON property `values`
# @return [Hash<String,Fixnum>]
attr_accessor :values
@ -4604,6 +4584,8 @@ module Google
# True, if the method should skip service control. If so, no control plane
# feature (like quota and billing) will be enabled.
# This flag is used by ESP to allow some Endpoints customers to bypass
# Google internal checks.
# Corresponds to the JSON property `skipServiceControl`
# @return [Boolean]
attr_accessor :skip_service_control

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServiceuserV1
VERSION = 'V1'
REVISION = '20170929'
REVISION = '20171006'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1808,6 +1808,8 @@ module Google
# A concise name for the metric, which can be displayed in user interfaces.
# Use sentence case without an ending period, for example "Request count".
# This field is optional but it is recommended to be set for any metrics
# associated with user-visible concepts, such as Quota.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
@ -1828,14 +1830,7 @@ module Google
# @return [String]
attr_accessor :metric_kind
# The resource name of the metric descriptor. Depending on the
# implementation, the name typically includes: (1) the parent resource name
# that defines the scope of the metric type or of its data; and (2) the
# metric's URL-encoded type, which also appears in the `type` field of this
# descriptor. For example, following is the resource name of a custom
# metric within the GCP project `my-project-id`:
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
# 2Fpaid%2Famount"
# The resource name of the metric descriptor.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -2631,22 +2626,14 @@ module Google
# The name of the metric this quota limit applies to. The quota limits with
# the same metric will be checked together during runtime. The metric must be
# defined within the service config.
# Used by metric-based quotas only.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# Name of the quota limit. The name is used to refer to the limit when
# overriding the default limit on per-consumer basis.
# For metric-based quota limits, the name must be provided, and it must be
# unique within the service. The name can only include alphanumeric
# characters as well as '-'.
# Name of the quota limit.
# The name must be provided, and it must be unique within the service. The
# name can only include alphanumeric characters as well as '-'.
# The maximum length of the limit name is 64 characters.
# The name of a limit is used as a unique identifier for this limit.
# Therefore, once a limit has been put into use, its name should be
# immutable. You can use the display_name field to provide a user-friendly
# name for the limit. The display name can be evolved over time without
# affecting the identity of the limit.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -2654,24 +2641,17 @@ module Google
# Specify the unit of the quota limit. It uses the same syntax as
# Metric.unit. The supported unit kinds are determined by the quota
# backend system.
# The [Google Service Control](https://cloud.google.com/service-control)
# supports the following unit components:
# * One of the time intevals:
# * "/min" for quota every minute.
# * "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
# * Otherwise the quota won't be reset by time, such as storage limit.
# * One and only one of the granted containers:
# * "/`project`" quota for a project
# Here are some examples:
# * "1/min/`project`" for quota per minute per project.
# Note: the order of unit components is insignificant.
# The "1" at the beginning is required to follow the metric unit syntax.
# Used by metric-based quotas only.
# Corresponds to the JSON property `unit`
# @return [String]
attr_accessor :unit
# Tiered limit values, currently only STANDARD is supported.
# Tiered limit values. You must specify this as a key:value pair, with an
# integer value that is the maximum number of requests allowed for the
# specified unit. Currently only STANDARD is supported.
# Corresponds to the JSON property `values`
# @return [Hash<String,Fixnum>]
attr_accessor :values
@ -3553,6 +3533,8 @@ module Google
# True, if the method should skip service control. If so, no control plane
# feature (like quota and billing) will be enabled.
# This flag is used by ESP to allow some Endpoints customers to bypass
# Google internal checks.
# Corresponds to the JSON property `skipServiceControl`
# @return [Boolean]
attr_accessor :skip_service_control

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20170905'
REVISION = '20171012'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1342,9 +1342,13 @@ module Google
# @return [Google::Apis::TestingV1::Account]
attr_accessor :account
# The directories on the device to upload to GCS at the end of the test;
# they must be absolute, whitelisted paths.
# Refer to RegularFile for whitelisted paths.
# List of directories on the device to upload to GCS at the end of the test;
# they must be absolute paths under /sdcard or /data/local/tmp.
# Path names are restricted to characters a-z A-Z 0-9 _ - . + and /
# Note: The paths /sdcard and /data will be made available and treated as
# implicit path substitutions. E.g. if /sdcard on a particular device does
# not map to external storage, the system will replace it with the external
# storage path prefix for that device.
# Optional
# Corresponds to the JSON property `directoriesToPull`
# @return [Array<String>]
@ -1356,6 +1360,7 @@ module Google
# @return [Array<Google::Apis::TestingV1::EnvironmentVariable>]
attr_accessor :environment_variables
# List of files to push to the device before starting the test.
# Optional
# Corresponds to the JSON property `filesToPush`
# @return [Array<Google::Apis::TestingV1::DeviceFile>]

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20171002'
REVISION = '20171009'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'

View File

@ -3529,6 +3529,77 @@ module Google
end
end
#
class SpreadsheetTemplate
include Google::Apis::Core::Hashable
# The type of the API resource. For spreadsheet template resources, the value is
# youtubePartner#spreadsheetTemplate.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The template status.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The template content.
# Corresponds to the JSON property `templateContent`
# @return [String]
attr_accessor :template_content
# The template name.
# Corresponds to the JSON property `templateName`
# @return [String]
attr_accessor :template_name
# The template type.
# Corresponds to the JSON property `templateType`
# @return [String]
attr_accessor :template_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@status = args[:status] if args.key?(:status)
@template_content = args[:template_content] if args.key?(:template_content)
@template_name = args[:template_name] if args.key?(:template_name)
@template_type = args[:template_type] if args.key?(:template_type)
end
end
#
class SpreadsheetTemplateListResponse
include Google::Apis::Core::Hashable
# A list of spreadsheet templates (youtubePartner#spreadsheetTemplate) resources
# that match the request criteria.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::YoutubePartnerV1::SpreadsheetTemplate>]
attr_accessor :items
# The type of the API response. For this operation, the value is youtubePartner#
# spreadsheetTemplateList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class StateCompleted
include Google::Apis::Core::Hashable

View File

@ -466,6 +466,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SpreadsheetTemplate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SpreadsheetTemplateListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StateCompleted
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1492,6 +1504,26 @@ module Google
end
end
class SpreadsheetTemplate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :status, as: 'status'
property :template_content, as: 'templateContent'
property :template_name, as: 'templateName'
property :template_type, as: 'templateType'
end
end
class SpreadsheetTemplateListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::YoutubePartnerV1::SpreadsheetTemplate, decorator: Google::Apis::YoutubePartnerV1::SpreadsheetTemplate::Representation
property :kind, as: 'kind'
end
end
class StateCompleted
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2957,6 +2957,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of spreadsheet templates for a content owner.
# @param [String] locale
# The locale parameter identifies the desired language for templates in the API
# response. The value is a string that contains a BCP-47 language code. The
# default value is en.
# @param [String] on_behalf_of_content_owner
# The onBehalfOfContentOwner parameter identifies the content owner that the
# user is acting on behalf of. This parameter supports users whose accounts are
# associated with multiple content owners.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse]
#
# @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_spreadsheet_templates(locale: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'spreadsheetTemplate', options)
command.response_representation = Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse::Representation
command.response_class = Google::Apis::YoutubePartnerV1::SpreadsheetTemplateListResponse
command.query['locale'] = locale unless locale.nil?
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of uploaders for a content owner.
# @param [String] on_behalf_of_content_owner
# The onBehalfOfContentOwner parameter identifies the content owner that the