Autogenerated update (2019-04-25)
Delete: - logging_v2beta1 Update: - adexchangebuyer2_v2beta1 - admin_reports_v1 - alertcenter_v1beta1 - androiddeviceprovisioning_v1 - androidenterprise_v1 - androidmanagement_v1 - androidpublisher_v2 - androidpublisher_v3 - appengine_v1 - appengine_v1beta - appsactivity_v1 - bigtableadmin_v1 - bigtableadmin_v2 - binaryauthorization_v1beta1 - calendar_v3 - classroom_v1 - cloudasset_v1 - cloudasset_v1beta1 - cloudbilling_v1 - cloudbuild_v1alpha1 - clouderrorreporting_v1beta1 - cloudfunctions_v1 - cloudfunctions_v1beta2 - cloudiot_v1 - cloudprivatecatalogproducer_v1beta1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - cloudsearch_v1 - cloudtasks_v2 - cloudtasks_v2beta2 - cloudtasks_v2beta3 - compute_alpha - compute_beta - compute_v1 - container_v1 - container_v1beta1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - content_v2 - content_v2_1 - datastore_v1 - datastore_v1beta1 - datastore_v1beta3 - dialogflow_v2 - dialogflow_v2beta1 - dlp_v2 - dns_v1 - dns_v1beta2 - dns_v2beta1 - docs_v1 - drive_v2 - drive_v3 - driveactivity_v2 - file_v1 - file_v1beta1 - firebasedynamiclinks_v1 - firebasehosting_v1beta1 - firebaserules_v1 - firestore_v1 - firestore_v1beta1 - firestore_v1beta2 - fitness_v1 - games_v1 - gmail_v1 - iap_v1 - iap_v1beta1 - jobs_v3 - jobs_v3p1beta1 - language_v1 - language_v1beta2 - ml_v1 - monitoring_v3 - oauth2_v1 - oauth2_v2 - people_v1 - plus_domains_v1 - plus_v1 - poly_v1 - pubsub_v1 - pubsub_v1beta2 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - run_v1alpha1 - runtimeconfig_v1beta1 - servicebroker_v1 - servicebroker_v1alpha1 - servicebroker_v1beta1 - serviceconsumermanagement_v1 - servicemanagement_v1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - sourcerepo_v1 - spanner_v1 - sqladmin_v1beta4 - storage_v1 - storagetransfer_v1 - texttospeech_v1beta1 - toolresults_v1beta3 - tpu_v1 - tpu_v1alpha1 - vault_v1 - vision_v1 - vision_v1p1beta1 - vision_v1p2beta1 - youtube_partner_v1 - youtube_v3 - youtubereporting_v1
This commit is contained in:
parent
06df528c4b
commit
50a63b45e3
2307
api_names_out.yaml
2307
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/accessapproval_v1beta1/service.rb'
|
||||||
|
require 'google/apis/accessapproval_v1beta1/classes.rb'
|
||||||
|
require 'google/apis/accessapproval_v1beta1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Access Approval API
|
||||||
|
#
|
||||||
|
# An API for controlling access to data by Google personnel.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/access-approval/docs
|
||||||
|
module AccessapprovalV1beta1
|
||||||
|
VERSION = 'V1beta1'
|
||||||
|
REVISION = '20190412'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,306 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module AccessapprovalV1beta1
|
||||||
|
|
||||||
|
# Settings on a Project/Folder/Organization related to Access Approval.
|
||||||
|
class AccessApprovalSettings
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The resource name of the settings. Format is one of:
|
||||||
|
# <ol>
|
||||||
|
# <li>"projects/`project_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"folders/`folder_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"organizations/`organization_id`/accessApprovalSettings"</li>
|
||||||
|
# <ol>
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# A list of email addresses to which notifications relating to approval
|
||||||
|
# requests should be sent. Notifications relating to a resource will be sent
|
||||||
|
# to all emails in the settings of ancestor resources of that resource.
|
||||||
|
# Corresponds to the JSON property `notificationEmails`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :notification_emails
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@notification_emails = args[:notification_emails] if args.key?(:notification_emails)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Home office and physical location of the principal.
|
||||||
|
class AccessLocations
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The "home office" location of the principal. A two-letter country code
|
||||||
|
# (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
|
||||||
|
# limited situations Google systems may refer refer to a region code instead
|
||||||
|
# of a country code.
|
||||||
|
# Possible Region Codes:
|
||||||
|
# <ol>
|
||||||
|
# <li>ASI: Asia</li>
|
||||||
|
# <li>EUR: Europe</li>
|
||||||
|
# <li>OCE: Oceania</li>
|
||||||
|
# <li>AFR: Africa</li>
|
||||||
|
# <li>NAM: North America</li>
|
||||||
|
# <li>SAM: South America</li>
|
||||||
|
# <li>ANT: Antarctica</li>
|
||||||
|
# <li>ANY: Any location</li>
|
||||||
|
# </ol>
|
||||||
|
# Corresponds to the JSON property `principalOfficeCountry`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :principal_office_country
|
||||||
|
|
||||||
|
# Physical location of the principal at the time of the access. A
|
||||||
|
# two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
|
||||||
|
# a region code. In some limited situations Google systems may refer refer to
|
||||||
|
# a region code instead of a country code.
|
||||||
|
# Possible Region Codes:
|
||||||
|
# <ol>
|
||||||
|
# <li>ASI: Asia</li>
|
||||||
|
# <li>EUR: Europe</li>
|
||||||
|
# <li>OCE: Oceania</li>
|
||||||
|
# <li>AFR: Africa</li>
|
||||||
|
# <li>NAM: North America</li>
|
||||||
|
# <li>SAM: South America</li>
|
||||||
|
# <li>ANT: Antarctica</li>
|
||||||
|
# <li>ANY: Any location</li>
|
||||||
|
# </ol>
|
||||||
|
# Corresponds to the JSON property `principalPhysicalLocationCountry`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :principal_physical_location_country
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@principal_office_country = args[:principal_office_country] if args.key?(:principal_office_country)
|
||||||
|
@principal_physical_location_country = args[:principal_physical_location_country] if args.key?(:principal_physical_location_country)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class AccessReason
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# More detail about certain reason types. See comments for each type above.
|
||||||
|
# Corresponds to the JSON property `detail`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :detail
|
||||||
|
|
||||||
|
# Type of access justification.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@detail = args[:detail] if args.key?(:detail)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A request for the customer to approve access to a resource.
|
||||||
|
class ApprovalRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A decision that has been made to approve access to a resource.
|
||||||
|
# Corresponds to the JSON property `approve`
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApproveDecision]
|
||||||
|
attr_accessor :approve
|
||||||
|
|
||||||
|
# A decision that has been made to dismiss an approval request.
|
||||||
|
# Corresponds to the JSON property `dismiss`
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::DismissDecision]
|
||||||
|
attr_accessor :dismiss
|
||||||
|
|
||||||
|
# The resource name of the request. Format is
|
||||||
|
# "`projects|folders|organizations`/`id`/approvalRequests/`approval_request_id`".
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The time at which approval was requested.
|
||||||
|
# Corresponds to the JSON property `requestTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :request_time
|
||||||
|
|
||||||
|
# The requested expiration for the approval. If the request is approved,
|
||||||
|
# access will be granted from the time of approval until the expiration time.
|
||||||
|
# Corresponds to the JSON property `requestedExpiration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :requested_expiration
|
||||||
|
|
||||||
|
# Home office and physical location of the principal.
|
||||||
|
# Corresponds to the JSON property `requestedLocations`
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessLocations]
|
||||||
|
attr_accessor :requested_locations
|
||||||
|
|
||||||
|
# The justification for which approval is being requested.
|
||||||
|
# Corresponds to the JSON property `requestedReason`
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessReason]
|
||||||
|
attr_accessor :requested_reason
|
||||||
|
|
||||||
|
# The resource for which approval is being requested. The format of the
|
||||||
|
# resource name is defined at
|
||||||
|
# https://cloud.google.com/apis/design/resource_names. The resource name here
|
||||||
|
# may either be a "full" resource name (e.g.
|
||||||
|
# "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative"
|
||||||
|
# resource name (e.g. "shelves/shelf1/books/book2") as described in the
|
||||||
|
# resource name specification.
|
||||||
|
# Corresponds to the JSON property `requestedResourceName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :requested_resource_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@approve = args[:approve] if args.key?(:approve)
|
||||||
|
@dismiss = args[:dismiss] if args.key?(:dismiss)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@request_time = args[:request_time] if args.key?(:request_time)
|
||||||
|
@requested_expiration = args[:requested_expiration] if args.key?(:requested_expiration)
|
||||||
|
@requested_locations = args[:requested_locations] if args.key?(:requested_locations)
|
||||||
|
@requested_reason = args[:requested_reason] if args.key?(:requested_reason)
|
||||||
|
@requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to approve an ApprovalRequest.
|
||||||
|
class ApproveApprovalRequestMessage
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The expiration time of this approval.
|
||||||
|
# Corresponds to the JSON property `expireTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expire_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A decision that has been made to approve access to a resource.
|
||||||
|
class ApproveDecision
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The time at which approval was granted.
|
||||||
|
# Corresponds to the JSON property `approveTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :approve_time
|
||||||
|
|
||||||
|
# The time at which the approval expires.
|
||||||
|
# Corresponds to the JSON property `expireTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expire_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@approve_time = args[:approve_time] if args.key?(:approve_time)
|
||||||
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request to dismiss an approval request.
|
||||||
|
class DismissApprovalRequestMessage
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A decision that has been made to dismiss an approval request.
|
||||||
|
class DismissDecision
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The time at which the approval request was dismissed.
|
||||||
|
# Corresponds to the JSON property `dismissTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :dismiss_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@dismiss_time = args[:dismiss_time] if args.key?(:dismiss_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response to listing of ApprovalRequest objects.
|
||||||
|
class ListApprovalRequestsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Approval request details.
|
||||||
|
# Corresponds to the JSON property `approvalRequests`
|
||||||
|
# @return [Array<Google::Apis::AccessapprovalV1beta1::ApprovalRequest>]
|
||||||
|
attr_accessor :approval_requests
|
||||||
|
|
||||||
|
# Token to retrieve the next page of results, or empty if there are no more.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@approval_requests = args[:approval_requests] if args.key?(:approval_requests)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,159 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module AccessapprovalV1beta1
|
||||||
|
|
||||||
|
class AccessApprovalSettings
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AccessLocations
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AccessReason
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApprovalRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApproveApprovalRequestMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApproveDecision
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DismissApprovalRequestMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DismissDecision
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListApprovalRequestsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AccessApprovalSettings
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :notification_emails, as: 'notificationEmails'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AccessLocations
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :principal_office_country, as: 'principalOfficeCountry'
|
||||||
|
property :principal_physical_location_country, as: 'principalPhysicalLocationCountry'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AccessReason
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :detail, as: 'detail'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApprovalRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :approve, as: 'approve', class: Google::Apis::AccessapprovalV1beta1::ApproveDecision, decorator: Google::Apis::AccessapprovalV1beta1::ApproveDecision::Representation
|
||||||
|
|
||||||
|
property :dismiss, as: 'dismiss', class: Google::Apis::AccessapprovalV1beta1::DismissDecision, decorator: Google::Apis::AccessapprovalV1beta1::DismissDecision::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :request_time, as: 'requestTime'
|
||||||
|
property :requested_expiration, as: 'requestedExpiration'
|
||||||
|
property :requested_locations, as: 'requestedLocations', class: Google::Apis::AccessapprovalV1beta1::AccessLocations, decorator: Google::Apis::AccessapprovalV1beta1::AccessLocations::Representation
|
||||||
|
|
||||||
|
property :requested_reason, as: 'requestedReason', class: Google::Apis::AccessapprovalV1beta1::AccessReason, decorator: Google::Apis::AccessapprovalV1beta1::AccessReason::Representation
|
||||||
|
|
||||||
|
property :requested_resource_name, as: 'requestedResourceName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApproveApprovalRequestMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :expire_time, as: 'expireTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApproveDecision
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :approve_time, as: 'approveTime'
|
||||||
|
property :expire_time, as: 'expireTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DismissApprovalRequestMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DismissDecision
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dismiss_time, as: 'dismissTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListApprovalRequestsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :approval_requests, as: 'approvalRequests', class: Google::Apis::AccessapprovalV1beta1::ApprovalRequest, decorator: Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,728 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module AccessapprovalV1beta1
|
||||||
|
# Access Approval API
|
||||||
|
#
|
||||||
|
# An API for controlling access to data by Google personnel.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/accessapproval_v1beta1'
|
||||||
|
#
|
||||||
|
# Accessapproval = Google::Apis::AccessapprovalV1beta1 # Alias the module
|
||||||
|
# service = Accessapproval::AccessApprovalService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/access-approval/docs
|
||||||
|
class AccessApprovalService < Google::Apis::Core::BaseService
|
||||||
|
# @return [String]
|
||||||
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
super('https://accessapproval.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets the settings associated with a project, folder, or organization.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the AccessApprovalSettings to retrieve.
|
||||||
|
# @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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings]
|
||||||
|
#
|
||||||
|
# @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_folder_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the settings associated with a project, folder, or organization.
|
||||||
|
# Completely replaces the existing settings.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the settings. Format is one of:
|
||||||
|
# <ol>
|
||||||
|
# <li>"projects/`project_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"folders/`folder_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"organizations/`organization_id`/accessApprovalSettings"</li>
|
||||||
|
# <ol>
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings]
|
||||||
|
#
|
||||||
|
# @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 update_folder_access_approval_settings(name, access_approval_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.request_object = access_approval_settings_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
|
||||||
|
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
|
||||||
|
|
||||||
|
# Approves a request and returns the updated ApprovalRequest.
|
||||||
|
# Returns NOT_FOUND if the request does not exist. Returns
|
||||||
|
# FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the approval request to approve.
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage] approve_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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 approve_folder_approval_request(name, approve_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+name}:approve', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage::Representation
|
||||||
|
command.request_object = approve_approval_request_message_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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
|
||||||
|
|
||||||
|
# Dismisses a request. Returns the updated ApprovalRequest.
|
||||||
|
# NOTE: This does not deny access to the resource if another request has been
|
||||||
|
# made and approved. It is equivalent in effect to ignoring the request
|
||||||
|
# altogether.
|
||||||
|
# Returns NOT_FOUND if the request does not exist.
|
||||||
|
# Returns FAILED_PRECONDITION if the request exists but is not in a pending
|
||||||
|
# state.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the ApprovalRequest to dismiss.
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage] dismiss_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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 dismiss_folder_approval_request(name, dismiss_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+name}:dismiss', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage::Representation
|
||||||
|
command.request_object = dismiss_approval_request_message_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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 an approval request. Returns NOT_FOUND if the request does not exist.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the approval request to retrieve.
|
||||||
|
# @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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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_folder_approval_request(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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 approval requests associated with a project, folder, or organization.
|
||||||
|
# Approval requests can be filtered by state (pending, active, dismissed).
|
||||||
|
# The order is reverse chronological.
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent resource. This may be "projects/`project_id`",
|
||||||
|
# "folders/`folder_id`", or "organizations/`organization_id`".
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter on the type of approval requests to retrieve. Must be one of the
|
||||||
|
# following values:
|
||||||
|
# <ol>
|
||||||
|
# <li>[not set]: Requests that are pending or have active approvals.</li>
|
||||||
|
# <li>ALL: All requests.</li>
|
||||||
|
# <li>PENDING: Only pending requests.</li>
|
||||||
|
# <li>ACTIVE: Only active (i.e. currently approved) requests.</li>
|
||||||
|
# <li>DISMISSED: Only dismissed (including expired) requests.</li>
|
||||||
|
# </ol>
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying the page of results to return.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse]
|
||||||
|
#
|
||||||
|
# @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_folder_approval_requests(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+parent}/approvalRequests', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# Gets the settings associated with a project, folder, or organization.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the AccessApprovalSettings to retrieve.
|
||||||
|
# @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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings]
|
||||||
|
#
|
||||||
|
# @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_organization_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the settings associated with a project, folder, or organization.
|
||||||
|
# Completely replaces the existing settings.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the settings. Format is one of:
|
||||||
|
# <ol>
|
||||||
|
# <li>"projects/`project_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"folders/`folder_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"organizations/`organization_id`/accessApprovalSettings"</li>
|
||||||
|
# <ol>
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings]
|
||||||
|
#
|
||||||
|
# @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 update_organization_access_approval_settings(name, access_approval_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.request_object = access_approval_settings_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
|
||||||
|
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
|
||||||
|
|
||||||
|
# Approves a request and returns the updated ApprovalRequest.
|
||||||
|
# Returns NOT_FOUND if the request does not exist. Returns
|
||||||
|
# FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the approval request to approve.
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage] approve_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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 approve_organization_approval_request(name, approve_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+name}:approve', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage::Representation
|
||||||
|
command.request_object = approve_approval_request_message_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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
|
||||||
|
|
||||||
|
# Dismisses a request. Returns the updated ApprovalRequest.
|
||||||
|
# NOTE: This does not deny access to the resource if another request has been
|
||||||
|
# made and approved. It is equivalent in effect to ignoring the request
|
||||||
|
# altogether.
|
||||||
|
# Returns NOT_FOUND if the request does not exist.
|
||||||
|
# Returns FAILED_PRECONDITION if the request exists but is not in a pending
|
||||||
|
# state.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the ApprovalRequest to dismiss.
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage] dismiss_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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 dismiss_organization_approval_request(name, dismiss_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+name}:dismiss', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage::Representation
|
||||||
|
command.request_object = dismiss_approval_request_message_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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 an approval request. Returns NOT_FOUND if the request does not exist.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the approval request to retrieve.
|
||||||
|
# @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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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_organization_approval_request(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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 approval requests associated with a project, folder, or organization.
|
||||||
|
# Approval requests can be filtered by state (pending, active, dismissed).
|
||||||
|
# The order is reverse chronological.
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent resource. This may be "projects/`project_id`",
|
||||||
|
# "folders/`folder_id`", or "organizations/`organization_id`".
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter on the type of approval requests to retrieve. Must be one of the
|
||||||
|
# following values:
|
||||||
|
# <ol>
|
||||||
|
# <li>[not set]: Requests that are pending or have active approvals.</li>
|
||||||
|
# <li>ALL: All requests.</li>
|
||||||
|
# <li>PENDING: Only pending requests.</li>
|
||||||
|
# <li>ACTIVE: Only active (i.e. currently approved) requests.</li>
|
||||||
|
# <li>DISMISSED: Only dismissed (including expired) requests.</li>
|
||||||
|
# </ol>
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying the page of results to return.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse]
|
||||||
|
#
|
||||||
|
# @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_organization_approval_requests(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+parent}/approvalRequests', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
# Gets the settings associated with a project, folder, or organization.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the AccessApprovalSettings to retrieve.
|
||||||
|
# @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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings]
|
||||||
|
#
|
||||||
|
# @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_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the settings associated with a project, folder, or organization.
|
||||||
|
# Completely replaces the existing settings.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource name of the settings. Format is one of:
|
||||||
|
# <ol>
|
||||||
|
# <li>"projects/`project_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"folders/`folder_id`/accessApprovalSettings"</li>
|
||||||
|
# <li>"organizations/`organization_id`/accessApprovalSettings"</li>
|
||||||
|
# <ol>
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings]
|
||||||
|
#
|
||||||
|
# @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 update_project_access_approval_settings(name, access_approval_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.request_object = access_approval_settings_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
|
||||||
|
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
|
||||||
|
|
||||||
|
# Approves a request and returns the updated ApprovalRequest.
|
||||||
|
# Returns NOT_FOUND if the request does not exist. Returns
|
||||||
|
# FAILED_PRECONDITION if the request exists but is not in a pending state.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the approval request to approve.
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage] approve_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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 approve_project_approval_request(name, approve_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+name}:approve', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage::Representation
|
||||||
|
command.request_object = approve_approval_request_message_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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
|
||||||
|
|
||||||
|
# Dismisses a request. Returns the updated ApprovalRequest.
|
||||||
|
# NOTE: This does not deny access to the resource if another request has been
|
||||||
|
# made and approved. It is equivalent in effect to ignoring the request
|
||||||
|
# altogether.
|
||||||
|
# Returns NOT_FOUND if the request does not exist.
|
||||||
|
# Returns FAILED_PRECONDITION if the request exists but is not in a pending
|
||||||
|
# state.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the ApprovalRequest to dismiss.
|
||||||
|
# @param [Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage] dismiss_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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 dismiss_project_approval_request(name, dismiss_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/{+name}:dismiss', options)
|
||||||
|
command.request_representation = Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage::Representation
|
||||||
|
command.request_object = dismiss_approval_request_message_object
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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 an approval request. Returns NOT_FOUND if the request does not exist.
|
||||||
|
# @param [String] name
|
||||||
|
# Name of the approval request to retrieve.
|
||||||
|
# @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::AccessapprovalV1beta1::ApprovalRequest] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest]
|
||||||
|
#
|
||||||
|
# @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_approval_request(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest
|
||||||
|
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 approval requests associated with a project, folder, or organization.
|
||||||
|
# Approval requests can be filtered by state (pending, active, dismissed).
|
||||||
|
# The order is reverse chronological.
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent resource. This may be "projects/`project_id`",
|
||||||
|
# "folders/`folder_id`", or "organizations/`organization_id`".
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter on the type of approval requests to retrieve. Must be one of the
|
||||||
|
# following values:
|
||||||
|
# <ol>
|
||||||
|
# <li>[not set]: Requests that are pending or have active approvals.</li>
|
||||||
|
# <li>ALL: All requests.</li>
|
||||||
|
# <li>PENDING: Only pending requests.</li>
|
||||||
|
# <li>ACTIVE: Only active (i.e. currently approved) requests.</li>
|
||||||
|
# <li>DISMISSED: Only dismissed (including expired) requests.</li>
|
||||||
|
# </ol>
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying the page of results to return.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse]
|
||||||
|
#
|
||||||
|
# @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_approval_requests(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1beta1/{+parent}/approvalRequests', options)
|
||||||
|
command.response_representation = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse
|
||||||
|
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
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
|
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
|
||||||
module Adexchangebuyer2V2beta1
|
module Adexchangebuyer2V2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20190328'
|
REVISION = '20190410'
|
||||||
|
|
||||||
# Manage your Ad Exchange buyer account configuration
|
# Manage your Ad Exchange buyer account configuration
|
||||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
|
|
@ -319,7 +319,8 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The ID of the callout status.
|
# The ID of the callout status.
|
||||||
# See [callout-status-codes](https://developers.google.com/authorized-buyers/rtb/
|
# See
|
||||||
|
# [callout-status-codes](https://developers.google.com/authorized-buyers/rtb/
|
||||||
# downloads/callout-status-codes).
|
# downloads/callout-status-codes).
|
||||||
# Corresponds to the JSON property `calloutStatusId`
|
# Corresponds to the JSON property `calloutStatusId`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
|
@ -987,8 +988,9 @@ module Google
|
||||||
attr_accessor :bid_count
|
attr_accessor :bid_count
|
||||||
|
|
||||||
# The ID of the creative status.
|
# The ID of the creative status.
|
||||||
# See [creative-status-codes](https://developers.google.com/authorized-buyers/
|
# See
|
||||||
# rtb/downloads/creative-status-codes).
|
# [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/
|
||||||
|
# downloads/creative-status-codes).
|
||||||
# Corresponds to the JSON property `creativeStatusId`
|
# Corresponds to the JSON property `creativeStatusId`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :creative_status_id
|
attr_accessor :creative_status_id
|
||||||
|
@ -1141,9 +1143,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A deal represents a segment of inventory for displaying ads on.
|
# A deal represents a segment of inventory for displaying ads on.
|
||||||
# A proposal can contain multiple deals. A deal contains the terms and targeting
|
# A proposal can contain multiple deals. A deal contains the terms and
|
||||||
# information that
|
# targeting information that is used for serving.
|
||||||
# is used for serving.
|
|
||||||
class Deal
|
class Deal
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -1156,9 +1157,9 @@ module Google
|
||||||
|
|
||||||
# Optional proposed flight start time of the deal.
|
# Optional proposed flight start time of the deal.
|
||||||
# This will generally be stored in the granularity of one second since deal
|
# This will generally be stored in the granularity of one second since deal
|
||||||
# serving
|
# serving starts at seconds boundary. Any time specified with more
|
||||||
# starts at seconds boundary. Any time specified with more granularity
|
# granularity (e.g., in milliseconds) will be truncated towards the start of
|
||||||
# (e.g., in milliseconds) will be truncated towards the start of time in seconds.
|
# time in seconds.
|
||||||
# Corresponds to the JSON property `availableStartTime`
|
# Corresponds to the JSON property `availableStartTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :available_start_time
|
attr_accessor :available_start_time
|
||||||
|
@ -3199,18 +3200,15 @@ module Google
|
||||||
class Product
|
class Product
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The proposed end time for the deal. The field will be truncated to the order
|
# The proposed end time for the deal. The field will be truncated to the
|
||||||
# of
|
# order of seconds during serving.
|
||||||
# seconds during serving.
|
|
||||||
# Corresponds to the JSON property `availableEndTime`
|
# Corresponds to the JSON property `availableEndTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :available_end_time
|
attr_accessor :available_end_time
|
||||||
|
|
||||||
# Inventory availability dates. The start time will be truncated to seconds
|
# Inventory availability dates. The start time will be truncated to seconds
|
||||||
# during serving.
|
# during serving. Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will
|
||||||
# Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will be truncated to 3:
|
# be truncated to 3:23:34 when serving.
|
||||||
# 23:34
|
|
||||||
# when serving.
|
|
||||||
# Corresponds to the JSON property `availableStartTime`
|
# Corresponds to the JSON property `availableStartTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :available_start_time
|
attr_accessor :available_start_time
|
||||||
|
@ -3348,9 +3346,8 @@ module Google
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::PrivateData]
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::PrivateData]
|
||||||
attr_accessor :buyer_private_data
|
attr_accessor :buyer_private_data
|
||||||
|
|
||||||
# The deals associated with this proposal. For Private Auction proposals (whose
|
# The deals associated with this proposal. For Private Auction proposals
|
||||||
# deals have
|
# (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
|
||||||
# NonGuaranteedAuctionTerms), there will only be one deal.
|
|
||||||
# Corresponds to the JSON property `deals`
|
# Corresponds to the JSON property `deals`
|
||||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Deal>]
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Deal>]
|
||||||
attr_accessor :deals
|
attr_accessor :deals
|
||||||
|
@ -3472,8 +3469,7 @@ module Google
|
||||||
# account manager for access to Marketplace resources.
|
# account manager for access to Marketplace resources.
|
||||||
# Represents a publisher profile in Marketplace.
|
# Represents a publisher profile in Marketplace.
|
||||||
# All fields are read only. All string fields are free-form text entered by the
|
# All fields are read only. All string fields are free-form text entered by the
|
||||||
# publisher
|
# publisher unless noted otherwise.
|
||||||
# unless noted otherwise.
|
|
||||||
class PublisherProfile
|
class PublisherProfile
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3482,16 +3478,15 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :audience_description
|
attr_accessor :audience_description
|
||||||
|
|
||||||
# Statement explaining what's unique about publisher's business, and why buyers
|
# Statement explaining what's unique about publisher's business, and why
|
||||||
# should
|
# buyers should partner with the publisher.
|
||||||
# partner with the publisher.
|
|
||||||
# Corresponds to the JSON property `buyerPitchStatement`
|
# Corresponds to the JSON property `buyerPitchStatement`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :buyer_pitch_statement
|
attr_accessor :buyer_pitch_statement
|
||||||
|
|
||||||
# Contact information for direct reservation deals. This is free text entered by
|
# Contact information for direct reservation deals. This is free text entered
|
||||||
# the publisher
|
# by the publisher and may include information like names, phone numbers and
|
||||||
# and may include information like names, phone numbers and email addresses.
|
# email addresses.
|
||||||
# Corresponds to the JSON property `directDealsContact`
|
# Corresponds to the JSON property `directDealsContact`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :direct_deals_contact
|
attr_accessor :direct_deals_contact
|
||||||
|
@ -3501,11 +3496,10 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
|
||||||
# The list of domains represented in this publisher profile. Empty if this is a
|
# The list of domains represented in this publisher profile. Empty if this is
|
||||||
# parent profile.
|
# a parent profile. These are top private domains, meaning that these will
|
||||||
# These are top private domains, meaning that these will not contain a string
|
# not contain a string like "photos.google.co.uk/123", but will instead
|
||||||
# like
|
# contain "google.co.uk".
|
||||||
# "photos.google.co.uk/123", but will instead contain "google.co.uk".
|
|
||||||
# Corresponds to the JSON property `domains`
|
# Corresponds to the JSON property `domains`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :domains
|
attr_accessor :domains
|
||||||
|
@ -3515,9 +3509,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :google_plus_url
|
attr_accessor :google_plus_url
|
||||||
|
|
||||||
# A Google public URL to the logo for this publisher profile. The logo is stored
|
# A Google public URL to the logo for this publisher profile. The logo is
|
||||||
# as
|
# stored as a PNG, JPG, or GIF image.
|
||||||
# a PNG, JPG, or GIF image.
|
|
||||||
# Corresponds to the JSON property `logoUrl`
|
# Corresponds to the JSON property `logoUrl`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :logo_url
|
attr_accessor :logo_url
|
||||||
|
@ -3532,9 +3525,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :overview
|
attr_accessor :overview
|
||||||
|
|
||||||
# Contact information for programmatic deals. This is free text entered by the
|
# Contact information for programmatic deals. This is free text entered by
|
||||||
# publisher
|
# the publisher and may include information like names, phone numbers and
|
||||||
# and may include information like names, phone numbers and email addresses.
|
# email addresses.
|
||||||
# Corresponds to the JSON property `programmaticDealsContact`
|
# Corresponds to the JSON property `programmaticDealsContact`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :programmatic_deals_contact
|
attr_accessor :programmatic_deals_contact
|
||||||
|
|
|
@ -382,7 +382,8 @@ module Google
|
||||||
# Typically, this is the value of
|
# Typically, this is the value of
|
||||||
# ListClientUsersResponse.nextPageToken
|
# ListClientUsersResponse.nextPageToken
|
||||||
# returned from the previous call to the
|
# returned from the previous call to the
|
||||||
# accounts.clients.users.list method.
|
# accounts.clients.users.list
|
||||||
|
# method.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1445,47 +1446,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes a single creative.
|
|
||||||
# A creative is deactivated upon deletion and does not count against active
|
|
||||||
# snippet quota. A deleted creative should not be used in bidding (all bids
|
|
||||||
# with that creative will be rejected).
|
|
||||||
# @param [String] owner_name
|
|
||||||
# Name of the owner (bidder or account) of the creative to be deleted.
|
|
||||||
# For example:
|
|
||||||
# - For an account-level creative for the buyer account representing bidder
|
|
||||||
# 123: `bidders/123/accounts/123`
|
|
||||||
# - For an account-level creative for the child seat buyer account 456
|
|
||||||
# whose bidder is 123: `bidders/123/accounts/456`
|
|
||||||
# @param [String] creative_id
|
|
||||||
# The ID of the creative to delete.
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# Available to use for quota purposes for server-side applications. Can be any
|
|
||||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::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_bidder_account_creative(owner_name, creative_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'v2beta1/{+ownerName}/creatives/{creativeId}', options)
|
|
||||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
||||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
|
||||||
command.params['ownerName'] = owner_name unless owner_name.nil?
|
|
||||||
command.params['creativeId'] = creative_id unless creative_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Creates the specified filter set for the account with the given account ID.
|
# Creates the specified filter set for the account with the given account ID.
|
||||||
# @param [String] owner_name
|
# @param [String] owner_name
|
||||||
# Name of the owner (bidder or account) of the filter set to be created.
|
# Name of the owner (bidder or account) of the filter set to be created.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/admin-sdk/reports/
|
# @see https://developers.google.com/admin-sdk/reports/
|
||||||
module AdminReportsV1
|
module AdminReportsV1
|
||||||
VERSION = 'ReportsV1'
|
VERSION = 'ReportsV1'
|
||||||
REVISION = '20190117'
|
REVISION = '20190210'
|
||||||
|
|
||||||
# View audit reports for your G Suite domain
|
# View audit reports for your G Suite domain
|
||||||
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/admin-sdk/alertcenter/
|
# @see https://developers.google.com/admin-sdk/alertcenter/
|
||||||
module AlertcenterV1beta1
|
module AlertcenterV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190221'
|
REVISION = '20190418'
|
||||||
|
|
||||||
# See and delete your domain's G Suite alerts, and send alert feedback
|
# See and delete your domain's G Suite alerts, and send alert feedback
|
||||||
AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts'
|
AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts'
|
||||||
|
|
|
@ -47,6 +47,98 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Alerts from G Suite Security Center rules service configured by admin.
|
||||||
|
class ActivityRule
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# List of action names associated with the rule threshold.
|
||||||
|
# Corresponds to the JSON property `actionNames`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :action_names
|
||||||
|
|
||||||
|
# Rule create timestamp.
|
||||||
|
# Corresponds to the JSON property `createTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :create_time
|
||||||
|
|
||||||
|
# Description of the rule.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Alert display name.
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# Rule name.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Query that is used to get the data from the associated source.
|
||||||
|
# Corresponds to the JSON property `query`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :query
|
||||||
|
|
||||||
|
# List of alert ids superseded by this alert. It is used to indicate that
|
||||||
|
# this alert is essentially extension of superseded alerts and we found the
|
||||||
|
# relationship after creating these alerts.
|
||||||
|
# Corresponds to the JSON property `supersededAlerts`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :superseded_alerts
|
||||||
|
|
||||||
|
# Alert id superseding this alert. It is used to indicate that superseding
|
||||||
|
# alert is essentially extension of this alert and we found the relationship
|
||||||
|
# after creating both alerts.
|
||||||
|
# Corresponds to the JSON property `supersedingAlert`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :superseding_alert
|
||||||
|
|
||||||
|
# Alert threshold is for example “COUNT > 5”.
|
||||||
|
# Corresponds to the JSON property `threshold`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :threshold
|
||||||
|
|
||||||
|
# The trigger sources for this rule.
|
||||||
|
# * GMAIL_EVENTS
|
||||||
|
# * DEVICE_EVENTS
|
||||||
|
# * USER_EVENTS
|
||||||
|
# Corresponds to the JSON property `triggerSource`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :trigger_source
|
||||||
|
|
||||||
|
# The timestamp of the last update to the rule.
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
|
# Rule window size. Possible values are 1 hour or 24 hours.
|
||||||
|
# Corresponds to the JSON property `windowSize`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :window_size
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@action_names = args[:action_names] if args.key?(:action_names)
|
||||||
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@query = args[:query] if args.key?(:query)
|
||||||
|
@superseded_alerts = args[:superseded_alerts] if args.key?(:superseded_alerts)
|
||||||
|
@superseding_alert = args[:superseding_alert] if args.key?(:superseding_alert)
|
||||||
|
@threshold = args[:threshold] if args.key?(:threshold)
|
||||||
|
@trigger_source = args[:trigger_source] if args.key?(:trigger_source)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
|
@window_size = args[:window_size] if args.key?(:window_size)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# An alert affecting a customer.
|
# An alert affecting a customer.
|
||||||
class Alert
|
class Alert
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -119,6 +211,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
|
||||||
|
# Output only. The time this alert was last updated.
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -135,6 +232,7 @@ module Google
|
||||||
@source = args[:source] if args.key?(:source)
|
@source = args[:source] if args.key?(:source)
|
||||||
@start_time = args[:start_time] if args.key?(:start_time)
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ActivityRule
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Alert
|
class Alert
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -193,6 +199,24 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ActivityRule
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :action_names, as: 'actionNames'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :query, as: 'query'
|
||||||
|
collection :superseded_alerts, as: 'supersededAlerts'
|
||||||
|
property :superseding_alert, as: 'supersedingAlert'
|
||||||
|
property :threshold, as: 'threshold'
|
||||||
|
property :trigger_source, as: 'triggerSource'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
property :window_size, as: 'windowSize'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Alert
|
class Alert
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -206,6 +230,7 @@ module Google
|
||||||
property :source, as: 'source'
|
property :source, as: 'source'
|
||||||
property :start_time, as: 'startTime'
|
property :start_time, as: 'startTime'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,8 @@ module Google
|
||||||
# If not specified results may be returned in arbitrary order.
|
# If not specified results may be returned in arbitrary order.
|
||||||
# You can sort the results in descending order based on the creation
|
# You can sort the results in descending order based on the creation
|
||||||
# timestamp using `order_by="create_time desc"`.
|
# timestamp using `order_by="create_time desc"`.
|
||||||
# Currently, only sorting by `create_time desc` is supported.
|
# Currently, supported sorting are `create_time asc`, `create_time desc`,
|
||||||
|
# `update_time desc`
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Optional. The requested page size. Server may return fewer items than
|
# Optional. The requested page size. Server may return fewer items than
|
||||||
# requested. If unspecified, server picks an appropriate default.
|
# requested. If unspecified, server picks an appropriate default.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/zero-touch/
|
# @see https://developers.google.com/zero-touch/
|
||||||
module AndroiddeviceprovisioningV1
|
module AndroiddeviceprovisioningV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190309'
|
REVISION = '20190406'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -546,6 +546,18 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
# The timestamp when the device will exit ‘vacation mode’. This value is
|
||||||
|
# present iff the device is in 'vacation mode'.
|
||||||
|
# Corresponds to the JSON property `vacationModeExpireTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :vacation_mode_expire_time
|
||||||
|
|
||||||
|
# The timestamp when the device was put into ‘vacation mode’. This value is
|
||||||
|
# present iff the device is in 'vacation mode'.
|
||||||
|
# Corresponds to the JSON property `vacationModeStartTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :vacation_mode_start_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -555,6 +567,8 @@ module Google
|
||||||
@owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id)
|
@owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id)
|
||||||
@reseller_id = args[:reseller_id] if args.key?(:reseller_id)
|
@reseller_id = args[:reseller_id] if args.key?(:reseller_id)
|
||||||
@section_type = args[:section_type] if args.key?(:section_type)
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
@vacation_mode_expire_time = args[:vacation_mode_expire_time] if args.key?(:vacation_mode_expire_time)
|
||||||
|
@vacation_mode_start_time = args[:vacation_mode_start_time] if args.key?(:vacation_mode_start_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1211,6 +1225,17 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
# The duration of the vacation unlock starting from when the request is
|
||||||
|
# processed. (1 day is treated as 24 hours)
|
||||||
|
# Corresponds to the JSON property `vacationModeDays`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :vacation_mode_days
|
||||||
|
|
||||||
|
# The expiration time of the vacation unlock.
|
||||||
|
# Corresponds to the JSON property `vacationModeExpireTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :vacation_mode_expire_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -1220,6 +1245,8 @@ module Google
|
||||||
@device_id = args[:device_id] if args.key?(:device_id)
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
@section_type = args[:section_type] if args.key?(:section_type)
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
@vacation_mode_days = args[:vacation_mode_days] if args.key?(:vacation_mode_days)
|
||||||
|
@vacation_mode_expire_time = args[:vacation_mode_expire_time] if args.key?(:vacation_mode_expire_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1353,6 +1380,17 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :section_type
|
attr_accessor :section_type
|
||||||
|
|
||||||
|
# The duration of the vacation unlock starting from when the request is
|
||||||
|
# processed. (1 day is treated as 24 hours)
|
||||||
|
# Corresponds to the JSON property `vacationModeDays`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :vacation_mode_days
|
||||||
|
|
||||||
|
# The expiration time of the vacation unlock.
|
||||||
|
# Corresponds to the JSON property `vacationModeExpireTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :vacation_mode_expire_time
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -1362,6 +1400,8 @@ module Google
|
||||||
@device_id = args[:device_id] if args.key?(:device_id)
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
||||||
@section_type = args[:section_type] if args.key?(:section_type)
|
@section_type = args[:section_type] if args.key?(:section_type)
|
||||||
|
@vacation_mode_days = args[:vacation_mode_days] if args.key?(:vacation_mode_days)
|
||||||
|
@vacation_mode_expire_time = args[:vacation_mode_expire_time] if args.key?(:vacation_mode_expire_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -406,6 +406,8 @@ module Google
|
||||||
property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId'
|
property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId'
|
||||||
property :reseller_id, :numeric_string => true, as: 'resellerId'
|
property :reseller_id, :numeric_string => true, as: 'resellerId'
|
||||||
property :section_type, as: 'sectionType'
|
property :section_type, as: 'sectionType'
|
||||||
|
property :vacation_mode_expire_time, as: 'vacationModeExpireTime'
|
||||||
|
property :vacation_mode_start_time, as: 'vacationModeStartTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -584,6 +586,8 @@ module Google
|
||||||
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
property :section_type, as: 'sectionType'
|
property :section_type, as: 'sectionType'
|
||||||
|
property :vacation_mode_days, as: 'vacationModeDays'
|
||||||
|
property :vacation_mode_expire_time, as: 'vacationModeExpireTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -613,6 +617,8 @@ module Google
|
||||||
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
||||||
|
|
||||||
property :section_type, as: 'sectionType'
|
property :section_type, as: 'sectionType'
|
||||||
|
property :vacation_mode_days, as: 'vacationModeDays'
|
||||||
|
property :vacation_mode_expire_time, as: 'vacationModeExpireTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/work/play/emm-api
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
module AndroidenterpriseV1
|
module AndroidenterpriseV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190320'
|
REVISION = '20190401'
|
||||||
|
|
||||||
# Manage corporate Android devices
|
# Manage corporate Android devices
|
||||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||||
|
|
|
@ -240,32 +240,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deprecated and unused.
|
|
||||||
class AndroidDevicePolicyConfig
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Identifies what kind of resource this is. Value: the fixed string "
|
|
||||||
# androidenterprise#androidDevicePolicyConfig".
|
|
||||||
# Corresponds to the JSON property `kind`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :kind
|
|
||||||
|
|
||||||
# Deprecated and unused.
|
|
||||||
# Corresponds to the JSON property `state`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :state
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
|
||||||
@state = args[:state] if args.key?(:state)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Represents the list of app restrictions available to be pre-configured for the
|
# Represents the list of app restrictions available to be pre-configured for the
|
||||||
# product.
|
# product.
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
|
|
|
@ -70,12 +70,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class AndroidDevicePolicyConfig
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -578,14 +572,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AndroidDevicePolicyConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :kind, as: 'kind'
|
|
||||||
property :state, as: 'state'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -771,42 +771,6 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deprecated and unused.
|
|
||||||
# @param [String] enterprise_id
|
|
||||||
# The ID of the enterprise.
|
|
||||||
# @param [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] android_device_policy_config_object
|
|
||||||
# @param [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [String] quota_user
|
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
||||||
# characters.
|
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def set_enterprise_android_device_policy_config(enterprise_id, android_device_policy_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:put, 'enterprises/{enterpriseId}/androidDevicePolicyConfig', options)
|
|
||||||
command.request_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
|
|
||||||
command.request_object = android_device_policy_config_object
|
|
||||||
command.response_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
|
|
||||||
command.response_class = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig
|
|
||||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Sets the store layout for the enterprise. By default, storeLayoutType is set
|
# Sets the store layout for the enterprise. By default, storeLayoutType is set
|
||||||
# to "basic" and the basic store layout is enabled. The basic layout only
|
# to "basic" and the basic store layout is enabled. The basic layout only
|
||||||
# contains apps approved by the admin, and that have been added to the available
|
# contains apps approved by the admin, and that have been added to the available
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/management
|
# @see https://developers.google.com/android/management
|
||||||
module AndroidmanagementV1
|
module AndroidmanagementV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190205'
|
REVISION = '20190416'
|
||||||
|
|
||||||
# Manage Android devices and apps for your customers
|
# Manage Android devices and apps for your customers
|
||||||
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
||||||
|
|
|
@ -284,6 +284,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :installer_package_name
|
attr_accessor :installer_package_name
|
||||||
|
|
||||||
|
# List of keyed app states reported by the app.
|
||||||
|
# Corresponds to the JSON property `keyedAppStates`
|
||||||
|
# @return [Array<Google::Apis::AndroidmanagementV1::KeyedAppState>]
|
||||||
|
attr_accessor :keyed_app_states
|
||||||
|
|
||||||
# Package name of the app.
|
# Package name of the app.
|
||||||
# Corresponds to the JSON property `packageName`
|
# Corresponds to the JSON property `packageName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -330,6 +335,7 @@ module Google
|
||||||
@display_name = args[:display_name] if args.key?(:display_name)
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
@events = args[:events] if args.key?(:events)
|
@events = args[:events] if args.key?(:events)
|
||||||
@installer_package_name = args[:installer_package_name] if args.key?(:installer_package_name)
|
@installer_package_name = args[:installer_package_name] if args.key?(:installer_package_name)
|
||||||
|
@keyed_app_states = args[:keyed_app_states] if args.key?(:keyed_app_states)
|
||||||
@package_name = args[:package_name] if args.key?(:package_name)
|
@package_name = args[:package_name] if args.key?(:package_name)
|
||||||
@package_sha256_hash = args[:package_sha256_hash] if args.key?(:package_sha256_hash)
|
@package_sha256_hash = args[:package_sha256_hash] if args.key?(:package_sha256_hash)
|
||||||
@signing_key_cert_fingerprints = args[:signing_key_cert_fingerprints] if args.key?(:signing_key_cert_fingerprints)
|
@signing_key_cert_fingerprints = args[:signing_key_cert_fingerprints] if args.key?(:signing_key_cert_fingerprints)
|
||||||
|
@ -339,6 +345,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Settings controlling the behavior of application reports.
|
||||||
|
class ApplicationReportingSettings
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Whether removed apps are included in application reports.
|
||||||
|
# Corresponds to the JSON property `includeRemovedApps`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :include_removed_apps
|
||||||
|
alias_method :include_removed_apps?, :include_removed_apps
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@include_removed_apps = args[:include_removed_apps] if args.key?(:include_removed_apps)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A rule for automatically choosing a private key and certificate to
|
# A rule for automatically choosing a private key and certificate to
|
||||||
# authenticate the device to a server.
|
# authenticate the device to a server.
|
||||||
class ChoosePrivateKeyRule
|
class ChoosePrivateKeyRule
|
||||||
|
@ -1202,6 +1228,61 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Keyed app state reported by the app.
|
||||||
|
class KeyedAppState
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The creation time of the app state on the device.
|
||||||
|
# Corresponds to the JSON property `createTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :create_time
|
||||||
|
|
||||||
|
# Optionally, a machine-readable value to be read by the EMM. For example,
|
||||||
|
# setting values that the admin can choose to query against in the EMM console (
|
||||||
|
# e.g. “notify me if the battery_warning data < 10”).
|
||||||
|
# Corresponds to the JSON property `data`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data
|
||||||
|
|
||||||
|
# The key for the app state. Acts as a point of reference for what the app is
|
||||||
|
# providing state for. For example, when providing managed configuration
|
||||||
|
# feedback, this key could be the managed configuration key.
|
||||||
|
# Corresponds to the JSON property `key`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# The time the app state was most recently updated.
|
||||||
|
# Corresponds to the JSON property `lastUpdateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_update_time
|
||||||
|
|
||||||
|
# Optionally, a free-form message string to explain the app state. If the state
|
||||||
|
# was triggered by a particular value (e.g. a managed configuration value), it
|
||||||
|
# should be included in the message.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
# The severity of the app state.
|
||||||
|
# Corresponds to the JSON property `severity`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :severity
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@create_time = args[:create_time] if args.key?(:create_time)
|
||||||
|
@data = args[:data] if args.key?(:data)
|
||||||
|
@key = args[:key] if args.key?(:key)
|
||||||
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
@severity = args[:severity] if args.key?(:severity)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# An action to launch an app.
|
# An action to launch an app.
|
||||||
class LaunchAppAction
|
class LaunchAppAction
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1296,6 +1377,31 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Response to a request to list web apps for a given enterprise.
|
||||||
|
class ListWebAppsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# If there are more results, a token to retrieve next page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The list of web apps.
|
||||||
|
# Corresponds to the JSON property `webApps`
|
||||||
|
# @return [Array<Google::Apis::AndroidmanagementV1::WebApp>]
|
||||||
|
attr_accessor :web_apps
|
||||||
|
|
||||||
|
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)
|
||||||
|
@web_apps = args[:web_apps] if args.key?(:web_apps)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# The managed configurations template for the app, saved from the managed
|
# The managed configurations template for the app, saved from the managed
|
||||||
# configurations iframe.
|
# configurations iframe.
|
||||||
class ManagedConfigurationTemplate
|
class ManagedConfigurationTemplate
|
||||||
|
@ -2745,6 +2851,11 @@ module Google
|
||||||
class StatusReportingSettings
|
class StatusReportingSettings
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Settings controlling the behavior of application reports.
|
||||||
|
# Corresponds to the JSON property `applicationReportingSettings`
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::ApplicationReportingSettings]
|
||||||
|
attr_accessor :application_reporting_settings
|
||||||
|
|
||||||
# Whether app reports are enabled.
|
# Whether app reports are enabled.
|
||||||
# Corresponds to the JSON property `applicationReportsEnabled`
|
# Corresponds to the JSON property `applicationReportsEnabled`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
|
@ -2799,6 +2910,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@application_reporting_settings = args[:application_reporting_settings] if args.key?(:application_reporting_settings)
|
||||||
@application_reports_enabled = args[:application_reports_enabled] if args.key?(:application_reports_enabled)
|
@application_reports_enabled = args[:application_reports_enabled] if args.key?(:application_reports_enabled)
|
||||||
@device_settings_enabled = args[:device_settings_enabled] if args.key?(:device_settings_enabled)
|
@device_settings_enabled = args[:device_settings_enabled] if args.key?(:device_settings_enabled)
|
||||||
@display_info_enabled = args[:display_info_enabled] if args.key?(:display_info_enabled)
|
@display_info_enabled = args[:display_info_enabled] if args.key?(:display_info_enabled)
|
||||||
|
@ -2928,6 +3040,82 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A web app.
|
||||||
|
class WebApp
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The display mode of the web app.
|
||||||
|
# Corresponds to the JSON property `displayMode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_mode
|
||||||
|
|
||||||
|
# A list of icons for the web app. Must have at least one element.
|
||||||
|
# Corresponds to the JSON property `icons`
|
||||||
|
# @return [Array<Google::Apis::AndroidmanagementV1::WebAppIcon>]
|
||||||
|
attr_accessor :icons
|
||||||
|
|
||||||
|
# The name of the web app, which is generated by the server during creation in
|
||||||
|
# the form enterprises/`enterpriseId`/webApps/`packageName`.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# The start URL, i.e. the URL that should load when the user opens the
|
||||||
|
# application.
|
||||||
|
# Corresponds to the JSON property `startUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :start_url
|
||||||
|
|
||||||
|
# The title of the web app as displayed to the user (e.g., amongst a list of
|
||||||
|
# other applications, or as a label for an icon).
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
# The current version of the app.<p>Note that the version can automatically
|
||||||
|
# increase during the lifetime of the web app, while Google does internal
|
||||||
|
# housekeeping to keep the web app up-to-date.
|
||||||
|
# Corresponds to the JSON property `versionCode`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :version_code
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@display_mode = args[:display_mode] if args.key?(:display_mode)
|
||||||
|
@icons = args[:icons] if args.key?(:icons)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@start_url = args[:start_url] if args.key?(:start_url)
|
||||||
|
@title = args[:title] if args.key?(:title)
|
||||||
|
@version_code = args[:version_code] if args.key?(:version_code)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An icon for a web app. Supported formats are: png, jpg and webp.
|
||||||
|
class WebAppIcon
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The actual bytes of the image in a base64url encoded string (c.f. RFC4648,
|
||||||
|
# section 5 "Base 64 Encoding with URL and Filename Safe Alphabet"). <ul> <li>
|
||||||
|
# The image type can be png or jpg. <li>The image should ideally be square. <li>
|
||||||
|
# The image should ideally have a size of 512x512. </ul>
|
||||||
|
# Corresponds to the JSON property `imageData`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :image_data
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@image_data = args[:image_data] if args.key?(:image_data)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A web token used to access the managed Google Play iframe.
|
# A web token used to access the managed Google Play iframe.
|
||||||
class WebToken
|
class WebToken
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -64,6 +64,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ApplicationReportingSettings
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ChoosePrivateKeyRule
|
class ChoosePrivateKeyRule
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -136,6 +142,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class KeyedAppState
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class LaunchAppAction
|
class LaunchAppAction
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -160,6 +172,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListWebAppsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ManagedConfigurationTemplate
|
class ManagedConfigurationTemplate
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -316,6 +334,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class WebApp
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class WebAppIcon
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class WebToken
|
class WebToken
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -392,6 +422,8 @@ module Google
|
||||||
collection :events, as: 'events', class: Google::Apis::AndroidmanagementV1::ApplicationEvent, decorator: Google::Apis::AndroidmanagementV1::ApplicationEvent::Representation
|
collection :events, as: 'events', class: Google::Apis::AndroidmanagementV1::ApplicationEvent, decorator: Google::Apis::AndroidmanagementV1::ApplicationEvent::Representation
|
||||||
|
|
||||||
property :installer_package_name, as: 'installerPackageName'
|
property :installer_package_name, as: 'installerPackageName'
|
||||||
|
collection :keyed_app_states, as: 'keyedAppStates', class: Google::Apis::AndroidmanagementV1::KeyedAppState, decorator: Google::Apis::AndroidmanagementV1::KeyedAppState::Representation
|
||||||
|
|
||||||
property :package_name, as: 'packageName'
|
property :package_name, as: 'packageName'
|
||||||
property :package_sha256_hash, as: 'packageSha256Hash'
|
property :package_sha256_hash, as: 'packageSha256Hash'
|
||||||
collection :signing_key_cert_fingerprints, as: 'signingKeyCertFingerprints'
|
collection :signing_key_cert_fingerprints, as: 'signingKeyCertFingerprints'
|
||||||
|
@ -401,6 +433,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ApplicationReportingSettings
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :include_removed_apps, as: 'includeRemovedApps'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ChoosePrivateKeyRule
|
class ChoosePrivateKeyRule
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -591,6 +630,18 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class KeyedAppState
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :data, as: 'data'
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :last_update_time, as: 'lastUpdateTime'
|
||||||
|
property :message, as: 'message'
|
||||||
|
property :severity, as: 'severity'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class LaunchAppAction
|
class LaunchAppAction
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -625,6 +676,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListWebAppsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :web_apps, as: 'webApps', class: Google::Apis::AndroidmanagementV1::WebApp, decorator: Google::Apis::AndroidmanagementV1::WebApp::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ManagedConfigurationTemplate
|
class ManagedConfigurationTemplate
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -931,6 +991,8 @@ module Google
|
||||||
class StatusReportingSettings
|
class StatusReportingSettings
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :application_reporting_settings, as: 'applicationReportingSettings', class: Google::Apis::AndroidmanagementV1::ApplicationReportingSettings, decorator: Google::Apis::AndroidmanagementV1::ApplicationReportingSettings::Representation
|
||||||
|
|
||||||
property :application_reports_enabled, as: 'applicationReportsEnabled'
|
property :application_reports_enabled, as: 'applicationReportsEnabled'
|
||||||
property :device_settings_enabled, as: 'deviceSettingsEnabled'
|
property :device_settings_enabled, as: 'deviceSettingsEnabled'
|
||||||
property :display_info_enabled, as: 'displayInfoEnabled'
|
property :display_info_enabled, as: 'displayInfoEnabled'
|
||||||
|
@ -976,6 +1038,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class WebApp
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_mode, as: 'displayMode'
|
||||||
|
collection :icons, as: 'icons', class: Google::Apis::AndroidmanagementV1::WebAppIcon, decorator: Google::Apis::AndroidmanagementV1::WebAppIcon::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :start_url, as: 'startUrl'
|
||||||
|
property :title, as: 'title'
|
||||||
|
property :version_code, :numeric_string => true, as: 'versionCode'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class WebAppIcon
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :image_data, as: 'imageData'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class WebToken
|
class WebToken
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -716,6 +716,176 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Creates a web app.
|
||||||
|
# @param [String] parent
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::WebApp] web_app_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::AndroidmanagementV1::WebApp] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::WebApp]
|
||||||
|
#
|
||||||
|
# @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_enterprise_web_app(parent, web_app_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+parent}/webApps', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation
|
||||||
|
command.request_object = web_app_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::WebApp
|
||||||
|
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 a web app.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the web app in the form enterprises/`enterpriseId`/webApps/`
|
||||||
|
# packageName`.
|
||||||
|
# @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::AndroidmanagementV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::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_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::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 web app.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the web app in the form enterprises/`enterpriseId`/webApp/`
|
||||||
|
# packageName`.
|
||||||
|
# @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::AndroidmanagementV1::WebApp] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::WebApp]
|
||||||
|
#
|
||||||
|
# @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_enterprise_web_app(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::WebApp
|
||||||
|
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 web apps for a given enterprise.
|
||||||
|
# @param [String] parent
|
||||||
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The requested page size. The actual page size may be fixed to a min or max
|
||||||
|
# value.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results returned by the server.
|
||||||
|
# @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::AndroidmanagementV1::ListWebAppsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::ListWebAppsResponse]
|
||||||
|
#
|
||||||
|
# @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_enterprise_web_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}/webApps', options)
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::ListWebAppsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::ListWebAppsResponse
|
||||||
|
command.params['parent'] = parent unless parent.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 a web app.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the web app in the form enterprises/`enterpriseId`/webApps/`
|
||||||
|
# packageName`.
|
||||||
|
# @param [Google::Apis::AndroidmanagementV1::WebApp] web_app_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# The field mask indicating the fields to update. If not set, all modifiable
|
||||||
|
# fields will be modified.
|
||||||
|
# @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::AndroidmanagementV1::WebApp] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidmanagementV1::WebApp]
|
||||||
|
#
|
||||||
|
# @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_enterprise_web_app(name, web_app_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation
|
||||||
|
command.request_object = web_app_object
|
||||||
|
command.response_representation = Google::Apis::AndroidmanagementV1::WebApp::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidmanagementV1::WebApp
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Creates a web token to access an embeddable managed Google Play web UI for a
|
# Creates a web token to access an embeddable managed Google Play web UI for a
|
||||||
# given enterprise.
|
# given enterprise.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190120'
|
REVISION = '20190414'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -1522,8 +1522,7 @@ module Google
|
||||||
# @param [String] edit_id
|
# @param [String] edit_id
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify.
|
||||||
# production", "rollout" or "internal".
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1563,8 +1562,7 @@ module Google
|
||||||
# @param [String] edit_id
|
# @param [String] edit_id
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify.
|
||||||
# production", "rollout" or "internal".
|
|
||||||
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1607,8 +1605,7 @@ module Google
|
||||||
# @param [String] edit_id
|
# @param [String] edit_id
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify.
|
||||||
# production", "rollout" or "internal".
|
|
||||||
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
# @param [Google::Apis::AndroidpublisherV2::Testers] testers_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1722,9 +1719,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the track configuration for the specified track type. When halted, the
|
# Updates the track configuration for the specified track type. This method
|
||||||
# rollout track cannot be updated without adding new APKs, and adding new APKs
|
# supports patch semantics.
|
||||||
# will cause it to resume. This method supports patch semantics.
|
|
||||||
# @param [String] package_name
|
# @param [String] package_name
|
||||||
# Unique identifier for the Android app that is being updated; for example, "com.
|
# Unique identifier for the Android app that is being updated; for example, "com.
|
||||||
# spiffygame".
|
# spiffygame".
|
||||||
|
@ -1767,9 +1763,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the track configuration for the specified track type. When halted, the
|
# Updates the track configuration for the specified track type.
|
||||||
# rollout track cannot be updated without adding new APKs, and adding new APKs
|
|
||||||
# will cause it to resume.
|
|
||||||
# @param [String] package_name
|
# @param [String] package_name
|
||||||
# Unique identifier for the Android app that is being updated; for example, "com.
|
# Unique identifier for the Android app that is being updated; for example, "com.
|
||||||
# spiffygame".
|
# spiffygame".
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV3
|
module AndroidpublisherV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20190331'
|
REVISION = '20190414'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -1256,8 +1256,7 @@ module Google
|
||||||
# @param [String] edit_id
|
# @param [String] edit_id
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify.
|
||||||
# production", "rollout" or "internal".
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1297,8 +1296,7 @@ module Google
|
||||||
# @param [String] edit_id
|
# @param [String] edit_id
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify.
|
||||||
# production", "rollout" or "internal".
|
|
||||||
# @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
|
# @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1341,8 +1339,7 @@ module Google
|
||||||
# @param [String] edit_id
|
# @param [String] edit_id
|
||||||
# Unique identifier for this edit.
|
# Unique identifier for this edit.
|
||||||
# @param [String] track
|
# @param [String] track
|
||||||
# The track to read or modify. Acceptable values are: "alpha", "beta", "
|
# The track to read or modify.
|
||||||
# production", "rollout" or "internal".
|
|
||||||
# @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
|
# @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1456,9 +1453,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the track configuration for the specified track type. When halted, the
|
# Updates the track configuration for the specified track type. This method
|
||||||
# rollout track cannot be updated without adding new APKs, and adding new APKs
|
# supports patch semantics.
|
||||||
# will cause it to resume. This method supports patch semantics.
|
|
||||||
# @param [String] package_name
|
# @param [String] package_name
|
||||||
# Unique identifier for the Android app that is being updated; for example, "com.
|
# Unique identifier for the Android app that is being updated; for example, "com.
|
||||||
# spiffygame".
|
# spiffygame".
|
||||||
|
@ -1501,9 +1497,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the track configuration for the specified track type. When halted, the
|
# Updates the track configuration for the specified track type.
|
||||||
# rollout track cannot be updated without adding new APKs, and adding new APKs
|
|
||||||
# will cause it to resume.
|
|
||||||
# @param [String] package_name
|
# @param [String] package_name
|
||||||
# Unique identifier for the Android app that is being updated; for example, "com.
|
# Unique identifier for the Android app that is being updated; for example, "com.
|
||||||
# spiffygame".
|
# spiffygame".
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
module AppengineV1
|
module AppengineV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190315'
|
REVISION = '20190411'
|
||||||
|
|
||||||
# View and manage your applications deployed on Google App Engine
|
# View and manage your applications deployed on Google App Engine
|
||||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||||
|
|
|
@ -157,7 +157,13 @@ module Google
|
||||||
# Recreates the required App Engine features for the specified App Engine
|
# Recreates the required App Engine features for the specified App Engine
|
||||||
# application, for example a Cloud Storage bucket or App Engine service account.
|
# application, for example a Cloud Storage bucket or App Engine service account.
|
||||||
# Use this method if you receive an error message about a missing feature, for
|
# Use this method if you receive an error message about a missing feature, for
|
||||||
# example, Error retrieving the App Engine service account.
|
# example, Error retrieving the App Engine service account. If you have deleted
|
||||||
|
# your App Engine service account, this will not be able to recreate it. Instead,
|
||||||
|
# you should attempt to use the IAM undelete API if possible at https://cloud.
|
||||||
|
# google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=
|
||||||
|
# %7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%
|
||||||
|
# 7D . If the deletion was recent, the numeric ID can be found in the Cloud
|
||||||
|
# Console Activity Log.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
||||||
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object
|
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_request_object
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
module AppengineV1beta
|
module AppengineV1beta
|
||||||
VERSION = 'V1beta'
|
VERSION = 'V1beta'
|
||||||
REVISION = '20190214'
|
REVISION = '20190411'
|
||||||
|
|
||||||
# View and manage your applications deployed on Google App Engine
|
# View and manage your applications deployed on Google App Engine
|
||||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||||
|
|
|
@ -157,7 +157,13 @@ module Google
|
||||||
# Recreates the required App Engine features for the specified App Engine
|
# Recreates the required App Engine features for the specified App Engine
|
||||||
# application, for example a Cloud Storage bucket or App Engine service account.
|
# application, for example a Cloud Storage bucket or App Engine service account.
|
||||||
# Use this method if you receive an error message about a missing feature, for
|
# Use this method if you receive an error message about a missing feature, for
|
||||||
# example, Error retrieving the App Engine service account.
|
# example, Error retrieving the App Engine service account. If you have deleted
|
||||||
|
# your App Engine service account, this will not be able to recreate it. Instead,
|
||||||
|
# you should attempt to use the IAM undelete API if possible at https://cloud.
|
||||||
|
# google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=
|
||||||
|
# %7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%
|
||||||
|
# 7D . If the deletion was recent, the numeric ID can be found in the Cloud
|
||||||
|
# Console Activity Log.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
# Part of `name`. Name of the application to repair. Example: apps/myapp
|
||||||
# @param [Google::Apis::AppengineV1beta::RepairApplicationRequest] repair_application_request_object
|
# @param [Google::Apis::AppengineV1beta::RepairApplicationRequest] repair_application_request_object
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/activity/
|
# @see https://developers.google.com/google-apps/activity/
|
||||||
module AppsactivityV1
|
module AppsactivityV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180819'
|
REVISION = '20190331'
|
||||||
|
|
||||||
# View the activity history of your Google apps
|
# View the activity history of your Google apps
|
||||||
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
|
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
|
||||||
|
|
|
@ -52,7 +52,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a list of activities visible to the current logged in user. Visible
|
# Returns a list of activities visible to the current logged in user. Visible
|
||||||
# activities are determined by the visiblity settings of the object that was
|
# activities are determined by the visibility settings of the object that was
|
||||||
# acted on, e.g. Drive files a user can see. An activity is a record of past
|
# acted on, e.g. Drive files a user can see. An activity is a record of past
|
||||||
# events. Multiple events may be merged if they are similar. A request is scoped
|
# events. Multiple events may be merged if they are similar. A request is scoped
|
||||||
# to activities from a given Google service using the source parameter.
|
# to activities from a given Google service using the source parameter.
|
||||||
|
@ -74,8 +74,9 @@ module Google
|
||||||
# are:
|
# are:
|
||||||
# - drive.google.com
|
# - drive.google.com
|
||||||
# @param [String] user_id
|
# @param [String] user_id
|
||||||
# Indicates the user to return activity for. Use the special value me to
|
# The ID used for ACL checks (does not filter the resulting event list by the
|
||||||
# indicate the currently authenticated user.
|
# assigned value). Use the special value me to indicate the currently
|
||||||
|
# authenticated user.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Cloud Bigtable Admin API
|
# Cloud Bigtable Admin API
|
||||||
#
|
#
|
||||||
#
|
# Administer your Cloud Bigtable tables and instances.
|
||||||
#
|
#
|
||||||
# @see https://cloud.google.com/bigtable/
|
# @see https://cloud.google.com/bigtable/
|
||||||
module BigtableadminV1
|
module BigtableadminV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190115'
|
REVISION = '20190328'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
||||||
module BigtableadminV1
|
module BigtableadminV1
|
||||||
# Cloud Bigtable Admin API
|
# Cloud Bigtable Admin API
|
||||||
#
|
#
|
||||||
#
|
# Administer your Cloud Bigtable tables and instances.
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# require 'google/apis/bigtableadmin_v1'
|
# require 'google/apis/bigtableadmin_v1'
|
||||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Cloud Bigtable Admin API
|
# Cloud Bigtable Admin API
|
||||||
#
|
#
|
||||||
#
|
# Administer your Cloud Bigtable tables and instances.
|
||||||
#
|
#
|
||||||
# @see https://cloud.google.com/bigtable/
|
# @see https://cloud.google.com/bigtable/
|
||||||
module BigtableadminV2
|
module BigtableadminV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190222'
|
REVISION = '20190328'
|
||||||
|
|
||||||
# Administer your Cloud Bigtable tables and clusters
|
# Administer your Cloud Bigtable tables and clusters
|
||||||
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
||||||
|
|
|
@ -1096,14 +1096,14 @@ module Google
|
||||||
attr_accessor :done
|
attr_accessor :done
|
||||||
alias_method :done?, :done
|
alias_method :done?, :done
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for different
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
# different programming environments, including REST APIs and RPC APIs. It is
|
||||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
# - Simple to use and understand for most users
|
# - Simple to use and understand for most users
|
||||||
# - Flexible enough to meet unexpected needs
|
# - Flexible enough to meet unexpected needs
|
||||||
# # Overview
|
# # Overview
|
||||||
# The `Status` message contains three pieces of data: error code, error message,
|
# The `Status` message contains three pieces of data: error code, error
|
||||||
# and error details. The error code should be an enum value of
|
# message, and error details. The error code should be an enum value of
|
||||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
# error message should be a developer-facing English message that helps
|
# error message should be a developer-facing English message that helps
|
||||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
@ -1407,14 +1407,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# The `Status` type defines a logical error model that is suitable for different
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
# different programming environments, including REST APIs and RPC APIs. It is
|
||||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
# - Simple to use and understand for most users
|
# - Simple to use and understand for most users
|
||||||
# - Flexible enough to meet unexpected needs
|
# - Flexible enough to meet unexpected needs
|
||||||
# # Overview
|
# # Overview
|
||||||
# The `Status` message contains three pieces of data: error code, error message,
|
# The `Status` message contains three pieces of data: error code, error
|
||||||
# and error details. The error code should be an enum value of
|
# message, and error details. The error code should be an enum value of
|
||||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
# error message should be a developer-facing English message that helps
|
# error message should be a developer-facing English message that helps
|
||||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
||||||
module BigtableadminV2
|
module BigtableadminV2
|
||||||
# Cloud Bigtable Admin API
|
# Cloud Bigtable Admin API
|
||||||
#
|
#
|
||||||
#
|
# Administer your Cloud Bigtable tables and instances.
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# require 'google/apis/bigtableadmin_v2'
|
# require 'google/apis/bigtableadmin_v2'
|
||||||
|
@ -1089,6 +1089,41 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Gets the access control policy for an instance resource. Returns an empty
|
||||||
|
# policy if an table exists but does not have a policy set.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which the policy is being requested.
|
||||||
|
# See the operation documentation for the appropriate value for this field.
|
||||||
|
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BigtableadminV2::Policy]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation
|
||||||
|
command.request_object = get_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::BigtableadminV2::Policy
|
||||||
|
command.params['resource'] = resource unless resource.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 all tables served from a specified instance.
|
# Lists all tables served from a specified instance.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# The unique name of the instance for which tables should be listed.
|
# The unique name of the instance for which tables should be listed.
|
||||||
|
@ -1169,6 +1204,75 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sets the access control policy on a table resource. Replaces any existing
|
||||||
|
# policy.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which the policy is being specified.
|
||||||
|
# See the operation documentation for the appropriate value for this field.
|
||||||
|
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::BigtableadminV2::Policy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BigtableadminV2::Policy]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation
|
||||||
|
command.request_object = set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
|
||||||
|
command.response_class = Google::Apis::BigtableadminV2::Policy
|
||||||
|
command.params['resource'] = resource unless resource.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 permissions that the caller has on the specified table resource.
|
||||||
|
# @param [String] resource
|
||||||
|
# REQUIRED: The resource for which the policy detail is being requested.
|
||||||
|
# See the operation documentation for the appropriate value for this field.
|
||||||
|
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::BigtableadminV2::TestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::BigtableadminV2::TestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse
|
||||||
|
command.params['resource'] = resource unless resource.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
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/binary-authorization/
|
# @see https://cloud.google.com/binary-authorization/
|
||||||
module BinaryauthorizationV1beta1
|
module BinaryauthorizationV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190320'
|
REVISION = '20190412'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20181125'
|
REVISION = '20190331'
|
||||||
|
|
||||||
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -1346,16 +1346,16 @@ module Google
|
||||||
# Learn more about incremental synchronization.
|
# Learn more about incremental synchronization.
|
||||||
# Optional. The default is to return all entries.
|
# Optional. The default is to return all entries.
|
||||||
# @param [DateTime] time_max
|
# @param [DateTime] time_max
|
||||||
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
# Upper bound (exclusive) for an event's end time to filter by. Optional. The
|
||||||
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-
|
||||||
# 00Z. Milliseconds may be provided but will be ignored. If timeMin is set,
|
# 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMin is set,
|
||||||
# timeMax must be greater than timeMin.
|
# timeMax must be greater than timeMin.
|
||||||
# @param [DateTime] time_min
|
# @param [DateTime] time_min
|
||||||
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
# Lower bound (inclusive) for an event's start time to filter by. Optional. The
|
||||||
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-
|
||||||
# 00Z. Milliseconds may be provided but will be ignored. If timeMax is set,
|
# 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMax is set,
|
||||||
# timeMin must be smaller than timeMax.
|
# timeMin must be smaller than timeMax.
|
||||||
# @param [String] time_zone
|
# @param [String] time_zone
|
||||||
# Time zone used in the response. Optional. The default is the time zone of the
|
# Time zone used in the response. Optional. The default is the time zone of the
|
||||||
|
@ -1733,16 +1733,16 @@ module Google
|
||||||
# Learn more about incremental synchronization.
|
# Learn more about incremental synchronization.
|
||||||
# Optional. The default is to return all entries.
|
# Optional. The default is to return all entries.
|
||||||
# @param [DateTime] time_max
|
# @param [DateTime] time_max
|
||||||
# Upper bound (exclusive) for an event's start time to filter by. Optional. The
|
# Upper bound (exclusive) for an event's end time to filter by. Optional. The
|
||||||
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-
|
||||||
# 00Z. Milliseconds may be provided but will be ignored. If timeMin is set,
|
# 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMin is set,
|
||||||
# timeMax must be greater than timeMin.
|
# timeMax must be greater than timeMin.
|
||||||
# @param [DateTime] time_min
|
# @param [DateTime] time_min
|
||||||
# Lower bound (inclusive) for an event's end time to filter by. Optional. The
|
# Lower bound (inclusive) for an event's start time to filter by. Optional. The
|
||||||
# default is not to filter by end time. Must be an RFC3339 timestamp with
|
# default is not to filter by start time. Must be an RFC3339 timestamp with
|
||||||
# mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:
|
# mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-
|
||||||
# 00Z. Milliseconds may be provided but will be ignored. If timeMax is set,
|
# 03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMax is set,
|
||||||
# timeMin must be smaller than timeMax.
|
# timeMin must be smaller than timeMax.
|
||||||
# @param [String] time_zone
|
# @param [String] time_zone
|
||||||
# Time zone used in the response. Optional. The default is the time zone of the
|
# Time zone used in the response. Optional. The default is the time zone of the
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/classroom/
|
# @see https://developers.google.com/classroom/
|
||||||
module ClassroomV1
|
module ClassroomV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20181113'
|
REVISION = '20190409'
|
||||||
|
|
||||||
# View and manage announcements in Google Classroom
|
# View and manage announcements in Google Classroom
|
||||||
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
|
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
|
||||||
|
@ -80,6 +80,12 @@ module Google
|
||||||
|
|
||||||
# View course work and grades for students in the Google Classroom classes you teach or administer
|
# View course work and grades for students in the Google Classroom classes you teach or administer
|
||||||
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.students.readonly'
|
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.students.readonly'
|
||||||
|
|
||||||
|
# See, create, and edit topics in Google Classroom
|
||||||
|
AUTH_CLASSROOM_TOPICS = 'https://www.googleapis.com/auth/classroom.topics'
|
||||||
|
|
||||||
|
# View topics in Google Classroom
|
||||||
|
AUTH_CLASSROOM_TOPICS_READONLY = 'https://www.googleapis.com/auth/classroom.topics.readonly'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -646,6 +646,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :title
|
attr_accessor :title
|
||||||
|
|
||||||
|
# Identifier for the topic that this coursework is associated with.
|
||||||
|
# Must match an existing topic in the course.
|
||||||
|
# Corresponds to the JSON property `topicId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :topic_id
|
||||||
|
|
||||||
# Timestamp of the most recent change to this course work.
|
# Timestamp of the most recent change to this course work.
|
||||||
# Read-only.
|
# Read-only.
|
||||||
# Corresponds to the JSON property `updateTime`
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
@ -683,6 +689,7 @@ module Google
|
||||||
@state = args[:state] if args.key?(:state)
|
@state = args[:state] if args.key?(:state)
|
||||||
@submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode)
|
@submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode)
|
||||||
@title = args[:title] if args.key?(:title)
|
@title = args[:title] if args.key?(:title)
|
||||||
|
@topic_id = args[:topic_id] if args.key?(:topic_id)
|
||||||
@update_time = args[:update_time] if args.key?(:update_time)
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
@work_type = args[:work_type] if args.key?(:work_type)
|
@work_type = args[:work_type] if args.key?(:work_type)
|
||||||
end
|
end
|
||||||
|
@ -1424,6 +1431,32 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Response when listing topics.
|
||||||
|
class ListTopicResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Token identifying the next page of results to return. If empty, no further
|
||||||
|
# results are available.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# Topic items that match the request.
|
||||||
|
# Corresponds to the JSON property `topic`
|
||||||
|
# @return [Array<Google::Apis::ClassroomV1::Topic>]
|
||||||
|
attr_accessor :topic
|
||||||
|
|
||||||
|
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)
|
||||||
|
@topic = args[:topic] if args.key?(:topic)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Material attached to course work.
|
# Material attached to course work.
|
||||||
# When creating attachments, setting the `form` field is not supported.
|
# When creating attachments, setting the `form` field is not supported.
|
||||||
class Material
|
class Material
|
||||||
|
@ -2074,6 +2107,50 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Topic created by a teacher for the course
|
||||||
|
class Topic
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifier of the course.
|
||||||
|
# Read-only.
|
||||||
|
# Corresponds to the JSON property `courseId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :course_id
|
||||||
|
|
||||||
|
# The name of the topic, generated by the user.
|
||||||
|
# Leading and trailing whitespaces, if any, will be trimmed. Also, multiple
|
||||||
|
# consecutive whitespaces will be collapsed into one inside the name. The
|
||||||
|
# result must be a non-empty string. Topic names are case sensitive, and must
|
||||||
|
# be no longer than 100 characters.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Unique identifier for the topic.
|
||||||
|
# Read-only.
|
||||||
|
# Corresponds to the JSON property `topicId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :topic_id
|
||||||
|
|
||||||
|
# The time the topic was last updated by the system.
|
||||||
|
# Read-only.
|
||||||
|
# Corresponds to the JSON property `updateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@course_id = args[:course_id] if args.key?(:course_id)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@topic_id = args[:topic_id] if args.key?(:topic_id)
|
||||||
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Request to turn in a student submission.
|
# Request to turn in a student submission.
|
||||||
class TurnInStudentSubmissionRequest
|
class TurnInStudentSubmissionRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -232,6 +232,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListTopicResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Material
|
class Material
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -346,6 +352,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Topic
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class TurnInStudentSubmissionRequest
|
class TurnInStudentSubmissionRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -512,6 +524,7 @@ module Google
|
||||||
property :state, as: 'state'
|
property :state, as: 'state'
|
||||||
property :submission_modification_mode, as: 'submissionModificationMode'
|
property :submission_modification_mode, as: 'submissionModificationMode'
|
||||||
property :title, as: 'title'
|
property :title, as: 'title'
|
||||||
|
property :topic_id, as: 'topicId'
|
||||||
property :update_time, as: 'updateTime'
|
property :update_time, as: 'updateTime'
|
||||||
property :work_type, as: 'workType'
|
property :work_type, as: 'workType'
|
||||||
end
|
end
|
||||||
|
@ -735,6 +748,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ListTopicResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :topic, as: 'topic', class: Google::Apis::ClassroomV1::Topic, decorator: Google::Apis::ClassroomV1::Topic::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Material
|
class Material
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -924,6 +946,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Topic
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :course_id, as: 'courseId'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :topic_id, as: 'topicId'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TurnInStudentSubmissionRequest
|
class TurnInStudentSubmissionRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -1848,6 +1848,230 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Creates a topic.
|
||||||
|
# This method returns the following error codes:
|
||||||
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
||||||
|
# requested course, create a topic in the requested course,
|
||||||
|
# or for access errors.
|
||||||
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
||||||
|
# * `NOT_FOUND` if the requested course does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course.
|
||||||
|
# This identifier can be either the Classroom-assigned identifier or an
|
||||||
|
# alias.
|
||||||
|
# @param [Google::Apis::ClassroomV1::Topic] topic_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::ClassroomV1::Topic] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::Topic]
|
||||||
|
#
|
||||||
|
# @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_course_topic(course_id, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/courses/{courseId}/topics', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Topic::Representation
|
||||||
|
command.request_object = topic_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Topic::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::Topic
|
||||||
|
command.params['courseId'] = course_id unless course_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes a topic.
|
||||||
|
# This method returns the following error codes:
|
||||||
|
# * `PERMISSION_DENIED` if the requesting user is not allowed to delete the
|
||||||
|
# requested topic or for access errors.
|
||||||
|
# * `FAILED_PRECONDITION` if the requested topic has already been
|
||||||
|
# deleted.
|
||||||
|
# * `NOT_FOUND` if no course or topic exists with the requested ID.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course.
|
||||||
|
# This identifier can be either the Classroom-assigned identifier or an
|
||||||
|
# alias.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the topic to delete.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ClassroomV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::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_course_topic(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/courses/{courseId}/topics/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::Empty
|
||||||
|
command.params['courseId'] = course_id unless course_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns a topic.
|
||||||
|
# This method returns the following error codes:
|
||||||
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
|
||||||
|
# requested course or topic, or for access errors.
|
||||||
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
||||||
|
# * `NOT_FOUND` if the requested course or topic does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the topic.
|
||||||
|
# @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::ClassroomV1::Topic] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::Topic]
|
||||||
|
#
|
||||||
|
# @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_course_topic(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/topics/{id}', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Topic::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::Topic
|
||||||
|
command.params['courseId'] = course_id unless course_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns the list of topics that the requester is permitted to view.
|
||||||
|
# This method returns the following error codes:
|
||||||
|
# * `PERMISSION_DENIED` if the requesting user is not permitted to access
|
||||||
|
# the requested course or for access errors.
|
||||||
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
||||||
|
# * `NOT_FOUND` if the requested course does not exist.
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course.
|
||||||
|
# This identifier can be either the Classroom-assigned identifier or an
|
||||||
|
# alias.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Maximum number of items to return. Zero or unspecified indicates that the
|
||||||
|
# server may assign a maximum.
|
||||||
|
# The server may return fewer than the specified number of results.
|
||||||
|
# @param [String] page_token
|
||||||
|
# nextPageToken
|
||||||
|
# value returned from a previous
|
||||||
|
# list call,
|
||||||
|
# indicating that the subsequent page of results should be returned.
|
||||||
|
# The list request
|
||||||
|
# must be otherwise identical to the one that resulted in this token.
|
||||||
|
# @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::ClassroomV1::ListTopicResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::ListTopicResponse]
|
||||||
|
#
|
||||||
|
# @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_course_topics(course_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/courses/{courseId}/topics', options)
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::ListTopicResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::ListTopicResponse
|
||||||
|
command.params['courseId'] = course_id unless course_id.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 one or more fields of a topic.
|
||||||
|
# This method returns the following error codes:
|
||||||
|
# * `PERMISSION_DENIED` if the requesting developer project did not create
|
||||||
|
# the corresponding topic or for access errors.
|
||||||
|
# * `INVALID_ARGUMENT` if the request is malformed.
|
||||||
|
# * `NOT_FOUND` if the requested course or topic does not exist
|
||||||
|
# @param [String] course_id
|
||||||
|
# Identifier of the course.
|
||||||
|
# This identifier can be either the Classroom-assigned identifier or an
|
||||||
|
# alias.
|
||||||
|
# @param [String] id
|
||||||
|
# Identifier of the topic.
|
||||||
|
# @param [Google::Apis::ClassroomV1::Topic] topic_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Mask that identifies which fields on the topic to update.
|
||||||
|
# This field is required to do an update. The update fails if invalid
|
||||||
|
# fields are specified. If a field supports empty values, it can be cleared
|
||||||
|
# by specifying it in the update mask and not in the Topic object. If a
|
||||||
|
# field that does not support empty values is included in the update mask and
|
||||||
|
# not set in the Topic object, an `INVALID_ARGUMENT` error will be
|
||||||
|
# returned.
|
||||||
|
# The following fields may be specified:
|
||||||
|
# * `name`
|
||||||
|
# @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::ClassroomV1::Topic] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ClassroomV1::Topic]
|
||||||
|
#
|
||||||
|
# @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_course_topic(course_id, id, topic_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/courses/{courseId}/topics/{id}', options)
|
||||||
|
command.request_representation = Google::Apis::ClassroomV1::Topic::Representation
|
||||||
|
command.request_object = topic_object
|
||||||
|
command.response_representation = Google::Apis::ClassroomV1::Topic::Representation
|
||||||
|
command.response_class = Google::Apis::ClassroomV1::Topic
|
||||||
|
command.params['courseId'] = course_id unless course_id.nil?
|
||||||
|
command.params['id'] = id unless id.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
|
||||||
|
|
||||||
# Accepts an invitation, removing it and adding the invited user to the
|
# Accepts an invitation, removing it and adding the invited user to the
|
||||||
# teachers or students (as appropriate) of the specified course. Only the
|
# teachers or students (as appropriate) of the specified course. Only the
|
||||||
# invited user may accept an invitation.
|
# invited user may accept an invitation.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
||||||
module CloudassetV1
|
module CloudassetV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190327'
|
REVISION = '20190412'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -290,8 +290,7 @@ module Google
|
||||||
|
|
||||||
# A list of asset types of which to take a snapshot for. For example:
|
# A list of asset types of which to take a snapshot for. For example:
|
||||||
# "compute.googleapis.com/Disk". If specified, only matching assets will be
|
# "compute.googleapis.com/Disk". If specified, only matching assets will be
|
||||||
# returned.
|
# returned. See [Introduction to Cloud Asset
|
||||||
# See [Introduction to Cloud Asset
|
|
||||||
# Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-
|
# Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-
|
||||||
# inventory/overview)
|
# inventory/overview)
|
||||||
# for all supported asset types.
|
# for all supported asset types.
|
||||||
|
@ -392,6 +391,19 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :uri
|
attr_accessor :uri
|
||||||
|
|
||||||
|
# The uri prefix of all generated Cloud Storage objects. For example:
|
||||||
|
# "gs://bucket_name/object_name_prefix". Each object uri is in format:
|
||||||
|
# "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
|
||||||
|
# contains assets for that type. <shard number> starts from 0. For example:
|
||||||
|
# "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
|
||||||
|
# the first shard of output objects containing all
|
||||||
|
# compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
|
||||||
|
# returned if file with the same name "gs://bucket_name/object_name_prefix"
|
||||||
|
# already exists.
|
||||||
|
# Corresponds to the JSON property `uriPrefix`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :uri_prefix
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -399,6 +411,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@uri = args[:uri] if args.key?(:uri)
|
@uri = args[:uri] if args.key?(:uri)
|
||||||
|
@uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -184,6 +184,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :uri, as: 'uri'
|
property :uri, as: 'uri'
|
||||||
|
property :uri_prefix, as: 'uriPrefix'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -96,8 +96,9 @@ module Google
|
||||||
# instance1`.
|
# instance1`.
|
||||||
# See [Resource
|
# See [Resource
|
||||||
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
||||||
# and [Resource Name Format](https://cloud.google.com/resource-manager/docs/
|
# and [Resource Name
|
||||||
# cloud-asset-inventory/resource-name-format)
|
# Format](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/
|
||||||
|
# resource-name-format)
|
||||||
# for more info.
|
# for more info.
|
||||||
# The request becomes a no-op if the asset name list is empty, and the max
|
# The request becomes a no-op if the asset name list is empty, and the max
|
||||||
# size of the asset name list is 100 in one request.
|
# size of the asset name list is 100 in one request.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
||||||
module CloudassetV1beta1
|
module CloudassetV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190327'
|
REVISION = '20190412'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -391,6 +391,18 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :uri
|
attr_accessor :uri
|
||||||
|
|
||||||
|
# The uri prefix of all generated Cloud Storage objects. For example:
|
||||||
|
# "gs://bucket_name/object_name_prefix". Each object uri is in format:
|
||||||
|
# "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
|
||||||
|
# contains assets for that type. <shard number> starts from 0. For example:
|
||||||
|
# "gs://bucket_name/object_name_prefix/google.compute.disk/0" is the first
|
||||||
|
# shard of output objects containing all google.compute.disk assets.
|
||||||
|
# An INVALID_ARGUMENT error will be returned if file with the same name
|
||||||
|
# "gs://bucket_name/object_name_prefix" already exists.
|
||||||
|
# Corresponds to the JSON property `uriPrefix`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :uri_prefix
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -398,6 +410,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@uri = args[:uri] if args.key?(:uri)
|
@uri = args[:uri] if args.key?(:uri)
|
||||||
|
@uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -184,6 +184,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :uri, as: 'uri'
|
property :uri, as: 'uri'
|
||||||
|
property :uri_prefix, as: 'uriPrefix'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/billing/
|
# @see https://cloud.google.com/billing/
|
||||||
module CloudbillingV1
|
module CloudbillingV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190310'
|
REVISION = '20190413'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -155,8 +155,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists the billing accounts that the current authenticated user has
|
# Lists the billing accounts that the current authenticated user has
|
||||||
# permission to [view](https://cloud.google.com/billing/docs/how-to/billing-
|
# permission to
|
||||||
# access).
|
# [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# Options for how to filter the returned billing accounts.
|
# Options for how to filter the returned billing accounts.
|
||||||
# Currently this only supports filtering for
|
# Currently this only supports filtering for
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/cloud-build/docs/
|
# @see https://cloud.google.com/cloud-build/docs/
|
||||||
module CloudbuildV1alpha1
|
module CloudbuildV1alpha1
|
||||||
VERSION = 'V1alpha1'
|
VERSION = 'V1alpha1'
|
||||||
REVISION = '20190312'
|
REVISION = '20190422'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1098,7 +1098,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# The project ID of the GCP project in which the `WorkerPool` is created.
|
# The project ID of the GCP project for which the `WorkerPool` is created.
|
||||||
# Corresponds to the JSON property `projectId`
|
# Corresponds to the JSON property `projectId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :project_id
|
attr_accessor :project_id
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/error-reporting/
|
# @see https://cloud.google.com/error-reporting/
|
||||||
module ClouderrorreportingV1beta1
|
module ClouderrorreportingV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20180706'
|
REVISION = '20190411'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -420,23 +420,26 @@ module Google
|
||||||
# languages and formats.
|
# languages and formats.
|
||||||
# Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
|
# Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
|
||||||
# Supported stack trace formats are:
|
# Supported stack trace formats are:
|
||||||
# * **Java**: Must be the return value of [`Throwable.printStackTrace()`](https:/
|
# * **Java**: Must be the return value of
|
||||||
# /docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%
|
# [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/
|
||||||
# 29).
|
# lang/Throwable.html#printStackTrace%28%29).
|
||||||
# * **Python**: Must be the return value of [`traceback.format_exc()`](https://
|
# * **Python**: Must be the return value of
|
||||||
# docs.python.org/2/library/traceback.html#traceback.format_exc).
|
# [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#
|
||||||
# * **JavaScript**: Must be the value of [`error.stack`](https://github.com/v8/
|
# traceback.format_exc).
|
||||||
# v8/wiki/Stack-Trace-API)
|
# * **JavaScript**: Must be the value of
|
||||||
# as returned by V8.
|
# [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
|
||||||
# * **Ruby**: Must contain frames returned by [`Exception.backtrace`](https://
|
# by V8.
|
||||||
# ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
|
# * **Ruby**: Must contain frames returned by
|
||||||
# * **C#**: Must be the return value of [`Exception.ToString()`](https://msdn.
|
# [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-
|
||||||
# microsoft.com/en-us/library/system.exception.tostring.aspx).
|
# i-backtrace).
|
||||||
|
# * **C#**: Must be the return value of
|
||||||
|
# [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.
|
||||||
|
# exception.tostring.aspx).
|
||||||
# * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
|
# * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
|
||||||
# and contain the result of [`(string)$exception`](http://php.net/manual/en/
|
# and contain the result of
|
||||||
# exception.tostring.php).
|
# [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
|
||||||
# * **Go**: Must be the return value of [`runtime.Stack()`](https://golang.org/
|
# * **Go**: Must be the return value of
|
||||||
# pkg/runtime/debug/#Stack).
|
# [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
|
||||||
# Corresponds to the JSON property `message`
|
# Corresponds to the JSON property `message`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :message
|
attr_accessor :message
|
||||||
|
|
|
@ -148,14 +148,15 @@ module Google
|
||||||
# **or** an [API key](https://support.google.com/cloud/answer/6158862)
|
# **or** an [API key](https://support.google.com/cloud/answer/6158862)
|
||||||
# for authentication. To use an API key, append it to the URL as the value of
|
# for authentication. To use an API key, append it to the URL as the value of
|
||||||
# a `key` parameter. For example:
|
# a `key` parameter. For example:
|
||||||
# `POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
|
# `POST
|
||||||
# project/events:report?key=123ABC456`
|
# https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/
|
||||||
|
# events:report?key=123ABC456`
|
||||||
# @param [String] project_name
|
# @param [String] project_name
|
||||||
# [Required] The resource name of the Google Cloud Platform project. Written
|
# [Required] The resource name of the Google Cloud Platform project. Written
|
||||||
# as `projects/` plus the
|
# as `projects/` plus the
|
||||||
# [Google Cloud Platform project ID](https://support.google.com/cloud/answer/
|
# [Google Cloud Platform project
|
||||||
# 6158840).
|
# ID](https://support.google.com/cloud/answer/6158840). Example:
|
||||||
# Example: `projects/my-project-123`.
|
# `projects/my-project-123`.
|
||||||
# @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object
|
# @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/functions
|
# @see https://cloud.google.com/functions
|
||||||
module CloudfunctionsV1
|
module CloudfunctionsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190318'
|
REVISION = '20190406'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -287,8 +287,7 @@ module Google
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
|
||||||
# The limit on the maximum number of function instances that may coexist at a
|
# The limit on the maximum number of function instances that may coexist at a
|
||||||
# given time. This feature is currently in alpha, available only for
|
# given time.
|
||||||
# whitelisted users.
|
|
||||||
# Corresponds to the JSON property `maxInstances`
|
# Corresponds to the JSON property `maxInstances`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :max_instances
|
attr_accessor :max_instances
|
||||||
|
@ -316,14 +315,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :network
|
attr_accessor :network
|
||||||
|
|
||||||
# The runtime in which the function is going to run. Example values include:
|
# Required. The runtime in which the function is going to run. Choices:
|
||||||
# `go111`: for Go 1.11
|
# * `nodejs6`: Node.js 6
|
||||||
# `nodejs6`: for Node.js 6
|
# * `nodejs8`: Node.js 8
|
||||||
# `nodejs8`: for Node.js 8
|
# * `nodejs10`: Node.js 10
|
||||||
# `nodejs10`: for Node.js 10
|
# * `python37`: Python 3.7
|
||||||
# `python37`: for Python 3.7
|
# * `go111`: Go 1.11
|
||||||
# `ruby25`: for Ruby 2.5
|
|
||||||
# If empty, defaults to `nodejs6`.
|
|
||||||
# Corresponds to the JSON property `runtime`
|
# Corresponds to the JSON property `runtime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :runtime
|
attr_accessor :runtime
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/functions
|
# @see https://cloud.google.com/functions
|
||||||
module CloudfunctionsV1beta2
|
module CloudfunctionsV1beta2
|
||||||
VERSION = 'V1beta2'
|
VERSION = 'V1beta2'
|
||||||
REVISION = '20190318'
|
REVISION = '20190406'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -124,8 +124,7 @@ module Google
|
||||||
attr_accessor :latest_operation
|
attr_accessor :latest_operation
|
||||||
|
|
||||||
# The limit on the maximum number of function instances that may coexist at a
|
# The limit on the maximum number of function instances that may coexist at a
|
||||||
# given time. This feature is currently in alpha, available only for
|
# given time.
|
||||||
# whitelisted users.
|
|
||||||
# Corresponds to the JSON property `maxInstances`
|
# Corresponds to the JSON property `maxInstances`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :max_instances
|
attr_accessor :max_instances
|
||||||
|
@ -153,8 +152,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :network
|
attr_accessor :network
|
||||||
|
|
||||||
# The runtime in which the function is going to run. If empty, defaults to
|
# Required. The runtime in which the function is going to run. Choices:
|
||||||
# Node.js 6.
|
# * `nodejs6`: Node.js 6
|
||||||
|
# * `nodejs8`: Node.js 8
|
||||||
|
# * `nodejs10`: Node.js 10
|
||||||
|
# * `python37`: Python 3.7
|
||||||
|
# * `go111`: Go 1.11
|
||||||
# Corresponds to the JSON property `runtime`
|
# Corresponds to the JSON property `runtime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :runtime
|
attr_accessor :runtime
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/iot
|
# @see https://cloud.google.com/iot
|
||||||
module CloudiotV1
|
module CloudiotV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190321'
|
REVISION = '20190409'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://sites.google.com/corp/google.com/cloudprivatecatalog
|
# @see https://sites.google.com/corp/google.com/cloudprivatecatalog
|
||||||
module CloudprivatecatalogproducerV1beta1
|
module CloudprivatecatalogproducerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190316'
|
REVISION = '20190413'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190318'
|
REVISION = '20190417'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1beta1
|
module CloudresourcemanagerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20190318'
|
REVISION = '20190417'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -130,8 +130,8 @@ module Google
|
||||||
# `domain`, where the domain is a G Suite domain, for example:
|
# `domain`, where the domain is a G Suite domain, for example:
|
||||||
# |Filter|Description|
|
# |Filter|Description|
|
||||||
# |------|-----------|
|
# |------|-----------|
|
||||||
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
# |owner.directorycustomerid:123456789|Organizations with
|
||||||
# directory_customer_id` equal to `123456789`.|
|
# `owner.directory_customer_id` equal to `123456789`.|
|
||||||
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
||||||
# This field is optional.
|
# This field is optional.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
|
@ -335,8 +335,9 @@ module Google
|
||||||
# and the Project remains visible to ListProjects.
|
# and the Project remains visible to ListProjects.
|
||||||
# However, you cannot update the project.
|
# However, you cannot update the project.
|
||||||
# After the deletion completes, the Project is not retrievable by
|
# After the deletion completes, the Project is not retrievable by
|
||||||
# the GetProject and
|
# the GetProject
|
||||||
# ListProjects methods.
|
# and ListProjects
|
||||||
|
# methods.
|
||||||
# The caller must have modify permissions for this Project.
|
# The caller must have modify permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Project ID (for example, `foo-bar-123`).
|
# The Project ID (for example, `foo-bar-123`).
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV2
|
module CloudresourcemanagerV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190318'
|
REVISION = '20190403'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV2beta1
|
module CloudresourcemanagerV2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20190318'
|
REVISION = '20190403'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/cloudscheduler_v1/service.rb'
|
||||||
|
require 'google/apis/cloudscheduler_v1/classes.rb'
|
||||||
|
require 'google/apis/cloudscheduler_v1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Cloud Scheduler API
|
||||||
|
#
|
||||||
|
# Creates and manages jobs run on a regular recurring schedule.
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/scheduler/
|
||||||
|
module CloudschedulerV1
|
||||||
|
VERSION = 'V1'
|
||||||
|
REVISION = '20190326'
|
||||||
|
|
||||||
|
# View and manage your data across Google Cloud Platform services
|
||||||
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,895 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module CloudschedulerV1
|
||||||
|
|
||||||
|
# App Engine target. The job will be pushed to a job handler by means
|
||||||
|
# of an HTTP request via an http_method such
|
||||||
|
# as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
|
||||||
|
# HTTP response code in the range [200 - 299]. Error 503 is
|
||||||
|
# considered an App Engine system error instead of an application
|
||||||
|
# error. Requests returning error 503 will be retried regardless of
|
||||||
|
# retry configuration and not counted against retry counts. Any other
|
||||||
|
# response code, or a failure to receive a response before the
|
||||||
|
# deadline, constitutes a failed attempt.
|
||||||
|
class AppEngineHttpTarget
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# App Engine Routing.
|
||||||
|
# For more information about services, versions, and instances see
|
||||||
|
# [An Overview of App
|
||||||
|
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
||||||
|
# engine),
|
||||||
|
# [Microservices Architecture on Google App
|
||||||
|
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
||||||
|
# engine),
|
||||||
|
# [App Engine Standard request
|
||||||
|
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||||
|
# are-routed),
|
||||||
|
# and [App Engine Flex request
|
||||||
|
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
||||||
|
# are-routed).
|
||||||
|
# Corresponds to the JSON property `appEngineRouting`
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::AppEngineRouting]
|
||||||
|
attr_accessor :app_engine_routing
|
||||||
|
|
||||||
|
# Body.
|
||||||
|
# HTTP request body. A request body is allowed only if the HTTP method is
|
||||||
|
# POST or PUT. It will result in invalid argument error to set a body on a
|
||||||
|
# job with an incompatible HttpMethod.
|
||||||
|
# Corresponds to the JSON property `body`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :body
|
||||||
|
|
||||||
|
# HTTP request headers.
|
||||||
|
# This map contains the header field names and values. Headers can be set
|
||||||
|
# when the job is created.
|
||||||
|
# Cloud Scheduler sets some headers to default values:
|
||||||
|
# * `User-Agent`: By default, this header is
|
||||||
|
# `"AppEngine-Google; (+http://code.google.com/appengine)"`.
|
||||||
|
# This header can be modified, but Cloud Scheduler will append
|
||||||
|
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
||||||
|
# modified `User-Agent`.
|
||||||
|
# * `X-CloudScheduler`: This header will be set to true.
|
||||||
|
# If the job has an body, Cloud Scheduler sets
|
||||||
|
# the following headers:
|
||||||
|
# * `Content-Type`: By default, the `Content-Type` header is set to
|
||||||
|
# `"application/octet-stream"`. The default can be overridden by explictly
|
||||||
|
# setting `Content-Type` to a particular media type when the job is
|
||||||
|
# created.
|
||||||
|
# For example, `Content-Type` can be set to `"application/json"`.
|
||||||
|
# * `Content-Length`: This is computed by Cloud Scheduler. This value is
|
||||||
|
# output only. It cannot be changed.
|
||||||
|
# The headers below are output only. They cannot be set or overridden:
|
||||||
|
# * `X-Google-*`: For Google internal use only.
|
||||||
|
# * `X-AppEngine-*`: For Google internal use only.
|
||||||
|
# In addition, some App Engine headers, which contain
|
||||||
|
# job-specific information, are also be sent to the job handler.
|
||||||
|
# Corresponds to the JSON property `headers`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :headers
|
||||||
|
|
||||||
|
# The HTTP method to use for the request. PATCH and OPTIONS are not
|
||||||
|
# permitted.
|
||||||
|
# Corresponds to the JSON property `httpMethod`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :http_method
|
||||||
|
|
||||||
|
# The relative URI.
|
||||||
|
# The relative URL must begin with "/" and must be a valid HTTP relative URL.
|
||||||
|
# It can contain a path, query string arguments, and `#` fragments.
|
||||||
|
# If the relative URL is empty, then the root path "/" will be used.
|
||||||
|
# No spaces are allowed, and the maximum length allowed is 2083 characters.
|
||||||
|
# Corresponds to the JSON property `relativeUri`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :relative_uri
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing)
|
||||||
|
@body = args[:body] if args.key?(:body)
|
||||||
|
@headers = args[:headers] if args.key?(:headers)
|
||||||
|
@http_method = args[:http_method] if args.key?(:http_method)
|
||||||
|
@relative_uri = args[:relative_uri] if args.key?(:relative_uri)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# App Engine Routing.
|
||||||
|
# For more information about services, versions, and instances see
|
||||||
|
# [An Overview of App
|
||||||
|
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
||||||
|
# engine),
|
||||||
|
# [Microservices Architecture on Google App
|
||||||
|
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
||||||
|
# engine),
|
||||||
|
# [App Engine Standard request
|
||||||
|
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||||
|
# are-routed),
|
||||||
|
# and [App Engine Flex request
|
||||||
|
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
||||||
|
# are-routed).
|
||||||
|
class AppEngineRouting
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Output only. The host that the job is sent to.
|
||||||
|
# For more information about how App Engine requests are routed, see
|
||||||
|
# [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||||
|
# are-routed).
|
||||||
|
# The host is constructed as:
|
||||||
|
# * `host = [application_domain_name]`</br>
|
||||||
|
# `| [service] + '.' + [application_domain_name]`</br>
|
||||||
|
# `| [version] + '.' + [application_domain_name]`</br>
|
||||||
|
# `| [version_dot_service]+ '.' + [application_domain_name]`</br>
|
||||||
|
# `| [instance] + '.' + [application_domain_name]`</br>
|
||||||
|
# `| [instance_dot_service] + '.' + [application_domain_name]`</br>
|
||||||
|
# `| [instance_dot_version] + '.' + [application_domain_name]`</br>
|
||||||
|
# `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
|
||||||
|
# * `application_domain_name` = The domain name of the app, for
|
||||||
|
# example <app-id>.appspot.com, which is associated with the
|
||||||
|
# job's project ID.
|
||||||
|
# * `service =` service
|
||||||
|
# * `version =` version
|
||||||
|
# * `version_dot_service =`
|
||||||
|
# version `+ '.' +`
|
||||||
|
# service
|
||||||
|
# * `instance =` instance
|
||||||
|
# * `instance_dot_service =`
|
||||||
|
# instance `+ '.' +`
|
||||||
|
# service
|
||||||
|
# * `instance_dot_version =`
|
||||||
|
# instance `+ '.' +`
|
||||||
|
# version
|
||||||
|
# * `instance_dot_version_dot_service =`
|
||||||
|
# instance `+ '.' +`
|
||||||
|
# version `+ '.' +`
|
||||||
|
# service
|
||||||
|
# If service is empty, then the job will be sent
|
||||||
|
# to the service which is the default service when the job is attempted.
|
||||||
|
# If version is empty, then the job will be sent
|
||||||
|
# to the version which is the default version when the job is attempted.
|
||||||
|
# If instance is empty, then the job will be
|
||||||
|
# sent to an instance which is available when the job is attempted.
|
||||||
|
# If service,
|
||||||
|
# version, or
|
||||||
|
# instance is invalid, then the job will be sent
|
||||||
|
# to the default version of the default service when the job is attempted.
|
||||||
|
# Corresponds to the JSON property `host`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :host
|
||||||
|
|
||||||
|
# App instance.
|
||||||
|
# By default, the job is sent to an instance which is available when
|
||||||
|
# the job is attempted.
|
||||||
|
# Requests can only be sent to a specific instance if
|
||||||
|
# [manual scaling is used in App Engine
|
||||||
|
# Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
||||||
|
# engine?hl=en_US#scaling_types_and_instance_classes).
|
||||||
|
# App Engine Flex does not support instances. For more information, see
|
||||||
|
# [App Engine Standard request
|
||||||
|
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||||
|
# are-routed)
|
||||||
|
# and [App Engine Flex request
|
||||||
|
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
||||||
|
# are-routed).
|
||||||
|
# Corresponds to the JSON property `instance`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :instance
|
||||||
|
|
||||||
|
# App service.
|
||||||
|
# By default, the job is sent to the service which is the default
|
||||||
|
# service when the job is attempted.
|
||||||
|
# Corresponds to the JSON property `service`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service
|
||||||
|
|
||||||
|
# App version.
|
||||||
|
# By default, the job is sent to the version which is the default
|
||||||
|
# version when the job is attempted.
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@host = args[:host] if args.key?(:host)
|
||||||
|
@instance = args[:instance] if args.key?(:instance)
|
||||||
|
@service = args[:service] if args.key?(:service)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A generic empty message that you can re-use to avoid defining duplicated
|
||||||
|
# empty messages in your APIs. A typical example is to use it as the request
|
||||||
|
# or the response type of an API method. For instance:
|
||||||
|
# service Foo `
|
||||||
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||||
|
# `
|
||||||
|
# The JSON representation for `Empty` is empty JSON object ````.
|
||||||
|
class Empty
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Http target. The job will be pushed to the job handler by means of
|
||||||
|
# an HTTP request via an http_method such as HTTP
|
||||||
|
# POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
|
||||||
|
# response code in the range [200 - 299]. A failure to receive a response
|
||||||
|
# constitutes a failed execution. For a redirected request, the response
|
||||||
|
# returned by the redirected request is considered.
|
||||||
|
class HttpTarget
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# HTTP request body. A request body is allowed only if the HTTP
|
||||||
|
# method is POST, PUT, or PATCH. It is an error to set body on a job with an
|
||||||
|
# incompatible HttpMethod.
|
||||||
|
# Corresponds to the JSON property `body`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :body
|
||||||
|
|
||||||
|
# The user can specify HTTP request headers to send with the job's
|
||||||
|
# HTTP request. This map contains the header field names and
|
||||||
|
# values. Repeated headers are not supported, but a header value can
|
||||||
|
# contain commas. These headers represent a subset of the headers
|
||||||
|
# that will accompany the job's HTTP request. Some HTTP request
|
||||||
|
# headers will be ignored or replaced. A partial list of headers that
|
||||||
|
# will be ignored or replaced is below:
|
||||||
|
# - Host: This will be computed by Cloud Scheduler and derived from
|
||||||
|
# uri.
|
||||||
|
# * `Content-Length`: This will be computed by Cloud Scheduler.
|
||||||
|
# * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
|
||||||
|
# * `X-Google-*`: Google internal use only.
|
||||||
|
# * `X-AppEngine-*`: Google internal use only.
|
||||||
|
# The total size of headers must be less than 80KB.
|
||||||
|
# Corresponds to the JSON property `headers`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :headers
|
||||||
|
|
||||||
|
# Which HTTP method to use for the request.
|
||||||
|
# Corresponds to the JSON property `httpMethod`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :http_method
|
||||||
|
|
||||||
|
# Required.
|
||||||
|
# The full URI path that the request will be sent to. This string
|
||||||
|
# must begin with either "http://" or "https://". Some examples of
|
||||||
|
# valid values for uri are:
|
||||||
|
# `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
|
||||||
|
# encode some characters for safety and compatibility. The maximum allowed
|
||||||
|
# URL length is 2083 characters after encoding.
|
||||||
|
# Corresponds to the JSON property `uri`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :uri
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@body = args[:body] if args.key?(:body)
|
||||||
|
@headers = args[:headers] if args.key?(:headers)
|
||||||
|
@http_method = args[:http_method] if args.key?(:http_method)
|
||||||
|
@uri = args[:uri] if args.key?(:uri)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Configuration for a job.
|
||||||
|
# The maximum allowed size for a job is 100KB.
|
||||||
|
class Job
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# App Engine target. The job will be pushed to a job handler by means
|
||||||
|
# of an HTTP request via an http_method such
|
||||||
|
# as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
|
||||||
|
# HTTP response code in the range [200 - 299]. Error 503 is
|
||||||
|
# considered an App Engine system error instead of an application
|
||||||
|
# error. Requests returning error 503 will be retried regardless of
|
||||||
|
# retry configuration and not counted against retry counts. Any other
|
||||||
|
# response code, or a failure to receive a response before the
|
||||||
|
# deadline, constitutes a failed attempt.
|
||||||
|
# Corresponds to the JSON property `appEngineHttpTarget`
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::AppEngineHttpTarget]
|
||||||
|
attr_accessor :app_engine_http_target
|
||||||
|
|
||||||
|
# Optionally caller-specified in CreateJob or
|
||||||
|
# UpdateJob.
|
||||||
|
# A human-readable description for the job. This string must not contain
|
||||||
|
# more than 500 characters.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Http target. The job will be pushed to the job handler by means of
|
||||||
|
# an HTTP request via an http_method such as HTTP
|
||||||
|
# POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
|
||||||
|
# response code in the range [200 - 299]. A failure to receive a response
|
||||||
|
# constitutes a failed execution. For a redirected request, the response
|
||||||
|
# returned by the redirected request is considered.
|
||||||
|
# Corresponds to the JSON property `httpTarget`
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::HttpTarget]
|
||||||
|
attr_accessor :http_target
|
||||||
|
|
||||||
|
# Output only. The time the last job attempt started.
|
||||||
|
# Corresponds to the JSON property `lastAttemptTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :last_attempt_time
|
||||||
|
|
||||||
|
# Optionally caller-specified in CreateJob, after
|
||||||
|
# which it becomes output only.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||||
|
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
||||||
|
# hyphens (-), colons (:), or periods (.).
|
||||||
|
# For more information, see
|
||||||
|
# [Identifying
|
||||||
|
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
||||||
|
# projects#identifying_projects)
|
||||||
|
# * `LOCATION_ID` is the canonical ID for the job's location.
|
||||||
|
# The list of available locations can be obtained by calling
|
||||||
|
# ListLocations.
|
||||||
|
# For more information, see https://cloud.google.com/about/locations/.
|
||||||
|
# * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
||||||
|
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Pub/Sub target. The job will be delivered by publishing a message to
|
||||||
|
# the given Pub/Sub topic.
|
||||||
|
# Corresponds to the JSON property `pubsubTarget`
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::PubsubTarget]
|
||||||
|
attr_accessor :pubsub_target
|
||||||
|
|
||||||
|
# Settings that determine the retry behavior.
|
||||||
|
# By default, if a job does not complete successfully (meaning that
|
||||||
|
# an acknowledgement is not received from the handler, then it will be retried
|
||||||
|
# with exponential backoff according to the settings in RetryConfig.
|
||||||
|
# Corresponds to the JSON property `retryConfig`
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::RetryConfig]
|
||||||
|
attr_accessor :retry_config
|
||||||
|
|
||||||
|
# Required, except when used with UpdateJob.
|
||||||
|
# Describes the schedule on which the job will be executed.
|
||||||
|
# The schedule can be either of the following types:
|
||||||
|
# * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
|
||||||
|
# * English-like
|
||||||
|
# [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-
|
||||||
|
# schedules)
|
||||||
|
# As a general rule, execution `n + 1` of a job will not begin
|
||||||
|
# until execution `n` has finished. Cloud Scheduler will never
|
||||||
|
# allow two simultaneously outstanding executions. For example,
|
||||||
|
# this implies that if the `n+1`th execution is scheduled to run at
|
||||||
|
# 16:00 but the `n`th execution takes until 16:15, the `n+1`th
|
||||||
|
# execution will not start until `16:15`.
|
||||||
|
# A scheduled start time will be delayed if the previous
|
||||||
|
# execution has not ended when its scheduled time occurs.
|
||||||
|
# If retry_count > 0 and a job attempt fails,
|
||||||
|
# the job will be tried a total of retry_count
|
||||||
|
# times, with exponential backoff, until the next scheduled start
|
||||||
|
# time.
|
||||||
|
# Corresponds to the JSON property `schedule`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :schedule
|
||||||
|
|
||||||
|
# Output only. The next time the job is scheduled. Note that this may be a
|
||||||
|
# retry of a previously failed attempt or the next execution time
|
||||||
|
# according to the schedule.
|
||||||
|
# Corresponds to the JSON property `scheduleTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :schedule_time
|
||||||
|
|
||||||
|
# Output only. State of the job.
|
||||||
|
# Corresponds to the JSON property `state`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :state
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
|
# different programming environments, including REST APIs and RPC APIs. It is
|
||||||
|
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error
|
||||||
|
# message, and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Status]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# Specifies the time zone to be used in interpreting
|
||||||
|
# schedule. The value of this field must be a time
|
||||||
|
# zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
|
||||||
|
# Note that some time zones include a provision for
|
||||||
|
# daylight savings time. The rules for daylight saving time are
|
||||||
|
# determined by the chosen tz. For UTC use the string "utc". If a
|
||||||
|
# time zone is not specified, the default will be in UTC (also known
|
||||||
|
# as GMT).
|
||||||
|
# Corresponds to the JSON property `timeZone`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :time_zone
|
||||||
|
|
||||||
|
# Output only. The creation time of the job.
|
||||||
|
# Corresponds to the JSON property `userUpdateTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user_update_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@http_target = args[:http_target] if args.key?(:http_target)
|
||||||
|
@last_attempt_time = args[:last_attempt_time] if args.key?(:last_attempt_time)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@pubsub_target = args[:pubsub_target] if args.key?(:pubsub_target)
|
||||||
|
@retry_config = args[:retry_config] if args.key?(:retry_config)
|
||||||
|
@schedule = args[:schedule] if args.key?(:schedule)
|
||||||
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
||||||
|
@state = args[:state] if args.key?(:state)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
||||||
|
@user_update_time = args[:user_update_time] if args.key?(:user_update_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for listing jobs using ListJobs.
|
||||||
|
class ListJobsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of jobs.
|
||||||
|
# Corresponds to the JSON property `jobs`
|
||||||
|
# @return [Array<Google::Apis::CloudschedulerV1::Job>]
|
||||||
|
attr_accessor :jobs
|
||||||
|
|
||||||
|
# A token to retrieve next page of results. Pass this value in the
|
||||||
|
# page_token field in the subsequent call to
|
||||||
|
# ListJobs to retrieve the next page of results.
|
||||||
|
# If this is empty it indicates that there are no more results
|
||||||
|
# through which to paginate.
|
||||||
|
# The page token is valid for only 2 hours.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@jobs = args[:jobs] if args.key?(:jobs)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Locations.ListLocations.
|
||||||
|
class ListLocationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of locations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `locations`
|
||||||
|
# @return [Array<Google::Apis::CloudschedulerV1::Location>]
|
||||||
|
attr_accessor :locations
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@locations = args[:locations] if args.key?(:locations)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A resource that represents Google Cloud Platform location.
|
||||||
|
class Location
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The friendly name for this location, typically a nearby city name.
|
||||||
|
# For example, "Tokyo".
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# Cross-service attributes for the location. For example
|
||||||
|
# `"cloud.googleapis.com/region": "us-east1"`
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# The canonical id for this location. For example: `"us-east1"`.
|
||||||
|
# Corresponds to the JSON property `locationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location_id
|
||||||
|
|
||||||
|
# Service-specific metadata. For example the available capacity at the given
|
||||||
|
# location.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# Resource name for the location, which may vary between implementations.
|
||||||
|
# For example: `"projects/example-project/locations/us-east1"`
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for PauseJob.
|
||||||
|
class PauseJobRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A message that is published by publishers and consumed by subscribers. The
|
||||||
|
# message must contain either a non-empty data field or at least one attribute.
|
||||||
|
# Note that client libraries represent this object differently
|
||||||
|
# depending on the language. See the corresponding
|
||||||
|
# <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
|
||||||
|
# library documentation</a> for more information. See
|
||||||
|
# <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
|
||||||
|
# for more information about message limits.
|
||||||
|
class PubsubMessage
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Optional attributes for this message.
|
||||||
|
# Corresponds to the JSON property `attributes`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :attributes
|
||||||
|
|
||||||
|
# The message data field. If this field is empty, the message must contain
|
||||||
|
# at least one attribute.
|
||||||
|
# Corresponds to the JSON property `data`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data
|
||||||
|
|
||||||
|
# ID of this message, assigned by the server when the message is published.
|
||||||
|
# Guaranteed to be unique within the topic. This value may be read by a
|
||||||
|
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
||||||
|
# delivery. It must not be populated by the publisher in a `Publish` call.
|
||||||
|
# Corresponds to the JSON property `messageId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message_id
|
||||||
|
|
||||||
|
# The time at which the message was published, populated by the server when
|
||||||
|
# it receives the `Publish` call. It must not be populated by the
|
||||||
|
# publisher in a `Publish` call.
|
||||||
|
# Corresponds to the JSON property `publishTime`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :publish_time
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attributes = args[:attributes] if args.key?(:attributes)
|
||||||
|
@data = args[:data] if args.key?(:data)
|
||||||
|
@message_id = args[:message_id] if args.key?(:message_id)
|
||||||
|
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Pub/Sub target. The job will be delivered by publishing a message to
|
||||||
|
# the given Pub/Sub topic.
|
||||||
|
class PubsubTarget
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Attributes for PubsubMessage.
|
||||||
|
# Pubsub message must contain either non-empty data, or at least one
|
||||||
|
# attribute.
|
||||||
|
# Corresponds to the JSON property `attributes`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :attributes
|
||||||
|
|
||||||
|
# The message payload for PubsubMessage.
|
||||||
|
# Pubsub message must contain either non-empty data, or at least one
|
||||||
|
# attribute.
|
||||||
|
# Corresponds to the JSON property `data`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data
|
||||||
|
|
||||||
|
# Required.
|
||||||
|
# The name of the Cloud Pub/Sub topic to which messages will
|
||||||
|
# be published when a job is delivered. The topic name must be in the
|
||||||
|
# same format as required by PubSub's
|
||||||
|
# [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/
|
||||||
|
# google.pubsub.v1#publishrequest),
|
||||||
|
# for example `projects/PROJECT_ID/topics/TOPIC_ID`.
|
||||||
|
# The topic must be in the same project as the Cloud Scheduler job.
|
||||||
|
# Corresponds to the JSON property `topicName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :topic_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attributes = args[:attributes] if args.key?(:attributes)
|
||||||
|
@data = args[:data] if args.key?(:data)
|
||||||
|
@topic_name = args[:topic_name] if args.key?(:topic_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for ResumeJob.
|
||||||
|
class ResumeJobRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Settings that determine the retry behavior.
|
||||||
|
# By default, if a job does not complete successfully (meaning that
|
||||||
|
# an acknowledgement is not received from the handler, then it will be retried
|
||||||
|
# with exponential backoff according to the settings in RetryConfig.
|
||||||
|
class RetryConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The maximum amount of time to wait before retrying a job after
|
||||||
|
# it fails.
|
||||||
|
# The default value of this field is 1 hour.
|
||||||
|
# Corresponds to the JSON property `maxBackoffDuration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :max_backoff_duration
|
||||||
|
|
||||||
|
# The time between retries will double `max_doublings` times.
|
||||||
|
# A job's retry interval starts at
|
||||||
|
# min_backoff_duration, then doubles
|
||||||
|
# `max_doublings` times, then increases linearly, and finally
|
||||||
|
# retries retries at intervals of
|
||||||
|
# max_backoff_duration up to
|
||||||
|
# retry_count times.
|
||||||
|
# For example, if min_backoff_duration is
|
||||||
|
# 10s, max_backoff_duration is 300s, and
|
||||||
|
# `max_doublings` is 3, then the a job will first be retried in 10s. The
|
||||||
|
# retry interval will double three times, and then increase linearly by
|
||||||
|
# 2^3 * 10s. Finally, the job will retry at intervals of
|
||||||
|
# max_backoff_duration until the job has
|
||||||
|
# been attempted retry_count times. Thus, the
|
||||||
|
# requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
|
||||||
|
# The default value of this field is 5.
|
||||||
|
# Corresponds to the JSON property `maxDoublings`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :max_doublings
|
||||||
|
|
||||||
|
# The time limit for retrying a failed job, measured from time when an
|
||||||
|
# execution was first attempted. If specified with
|
||||||
|
# retry_count, the job will be retried until both
|
||||||
|
# limits are reached.
|
||||||
|
# The default value for max_retry_duration is zero, which means retry
|
||||||
|
# duration is unlimited.
|
||||||
|
# Corresponds to the JSON property `maxRetryDuration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :max_retry_duration
|
||||||
|
|
||||||
|
# The minimum amount of time to wait before retrying a job after
|
||||||
|
# it fails.
|
||||||
|
# The default value of this field is 5 seconds.
|
||||||
|
# Corresponds to the JSON property `minBackoffDuration`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :min_backoff_duration
|
||||||
|
|
||||||
|
# The number of attempts that the system will make to run a job using the
|
||||||
|
# exponential backoff procedure described by
|
||||||
|
# max_doublings.
|
||||||
|
# The default value of retry_count is zero.
|
||||||
|
# If retry_count is zero, a job attempt will *not* be retried if
|
||||||
|
# it fails. Instead the Cloud Scheduler system will wait for the
|
||||||
|
# next scheduled execution time.
|
||||||
|
# If retry_count is set to a non-zero number then Cloud Scheduler
|
||||||
|
# will retry failed attempts, using exponential backoff,
|
||||||
|
# retry_count times, or until the next scheduled execution time,
|
||||||
|
# whichever comes first.
|
||||||
|
# Values greater than 5 and negative values are not allowed.
|
||||||
|
# Corresponds to the JSON property `retryCount`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :retry_count
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@max_backoff_duration = args[:max_backoff_duration] if args.key?(:max_backoff_duration)
|
||||||
|
@max_doublings = args[:max_doublings] if args.key?(:max_doublings)
|
||||||
|
@max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration)
|
||||||
|
@min_backoff_duration = args[:min_backoff_duration] if args.key?(:min_backoff_duration)
|
||||||
|
@retry_count = args[:retry_count] if args.key?(:retry_count)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for forcing a job to run now using
|
||||||
|
# RunJob.
|
||||||
|
class RunJobRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The `Status` type defines a logical error model that is suitable for
|
||||||
|
# different programming environments, including REST APIs and RPC APIs. It is
|
||||||
|
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||||
|
# - Simple to use and understand for most users
|
||||||
|
# - Flexible enough to meet unexpected needs
|
||||||
|
# # Overview
|
||||||
|
# The `Status` message contains three pieces of data: error code, error
|
||||||
|
# message, and error details. The error code should be an enum value of
|
||||||
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||||
|
# error message should be a developer-facing English message that helps
|
||||||
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||||
|
# error message is needed, put the localized message in the error details or
|
||||||
|
# localize it in the client. The optional error details may contain arbitrary
|
||||||
|
# information about the error. There is a predefined set of error detail types
|
||||||
|
# in the package `google.rpc` that can be used for common error conditions.
|
||||||
|
# # Language mapping
|
||||||
|
# The `Status` message is the logical representation of the error model, but it
|
||||||
|
# is not necessarily the actual wire format. When the `Status` message is
|
||||||
|
# exposed in different client libraries and different wire protocols, it can be
|
||||||
|
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||||
|
# in Java, but more likely mapped to some error codes in C.
|
||||||
|
# # Other uses
|
||||||
|
# The error model and the `Status` message can be used in a variety of
|
||||||
|
# environments, either with or without APIs, to provide a
|
||||||
|
# consistent developer experience across different environments.
|
||||||
|
# Example uses of this error model include:
|
||||||
|
# - Partial errors. If a service needs to return partial errors to the client,
|
||||||
|
# it may embed the `Status` in the normal response to indicate the partial
|
||||||
|
# errors.
|
||||||
|
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||||
|
# have a `Status` message for error reporting.
|
||||||
|
# - Batch operations. If a client uses batch request and batch response, the
|
||||||
|
# `Status` message should be used directly inside batch response, one for
|
||||||
|
# each error sub-response.
|
||||||
|
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||||
|
# results in its response, the status of those operations should be
|
||||||
|
# represented directly using the `Status` message.
|
||||||
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||||
|
# be used directly after any stripping needed for security/privacy reasons.
|
||||||
|
class Status
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The status code, which should be an enum value of google.rpc.Code.
|
||||||
|
# Corresponds to the JSON property `code`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :code
|
||||||
|
|
||||||
|
# A list of messages that carry the error details. There is a common set of
|
||||||
|
# message types for APIs to use.
|
||||||
|
# Corresponds to the JSON property `details`
|
||||||
|
# @return [Array<Hash<String,Object>>]
|
||||||
|
attr_accessor :details
|
||||||
|
|
||||||
|
# A developer-facing error message, which should be in English. Any
|
||||||
|
# user-facing error message should be localized and sent in the
|
||||||
|
# google.rpc.Status.details field, or localized by the client.
|
||||||
|
# Corresponds to the JSON property `message`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@code = args[:code] if args.key?(:code)
|
||||||
|
@details = args[:details] if args.key?(:details)
|
||||||
|
@message = args[:message] if args.key?(:message)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,264 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module CloudschedulerV1
|
||||||
|
|
||||||
|
class AppEngineHttpTarget
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AppEngineRouting
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpTarget
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Job
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListJobsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PauseJobRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PubsubMessage
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PubsubTarget
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ResumeJobRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RetryConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunJobRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AppEngineHttpTarget
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudschedulerV1::AppEngineRouting, decorator: Google::Apis::CloudschedulerV1::AppEngineRouting::Representation
|
||||||
|
|
||||||
|
property :body, :base64 => true, as: 'body'
|
||||||
|
hash :headers, as: 'headers'
|
||||||
|
property :http_method, as: 'httpMethod'
|
||||||
|
property :relative_uri, as: 'relativeUri'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AppEngineRouting
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :host, as: 'host'
|
||||||
|
property :instance, as: 'instance'
|
||||||
|
property :service, as: 'service'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class HttpTarget
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :body, :base64 => true, as: 'body'
|
||||||
|
hash :headers, as: 'headers'
|
||||||
|
property :http_method, as: 'httpMethod'
|
||||||
|
property :uri, as: 'uri'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Job
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :app_engine_http_target, as: 'appEngineHttpTarget', class: Google::Apis::CloudschedulerV1::AppEngineHttpTarget, decorator: Google::Apis::CloudschedulerV1::AppEngineHttpTarget::Representation
|
||||||
|
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :http_target, as: 'httpTarget', class: Google::Apis::CloudschedulerV1::HttpTarget, decorator: Google::Apis::CloudschedulerV1::HttpTarget::Representation
|
||||||
|
|
||||||
|
property :last_attempt_time, as: 'lastAttemptTime'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :pubsub_target, as: 'pubsubTarget', class: Google::Apis::CloudschedulerV1::PubsubTarget, decorator: Google::Apis::CloudschedulerV1::PubsubTarget::Representation
|
||||||
|
|
||||||
|
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudschedulerV1::RetryConfig, decorator: Google::Apis::CloudschedulerV1::RetryConfig::Representation
|
||||||
|
|
||||||
|
property :schedule, as: 'schedule'
|
||||||
|
property :schedule_time, as: 'scheduleTime'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :status, as: 'status', class: Google::Apis::CloudschedulerV1::Status, decorator: Google::Apis::CloudschedulerV1::Status::Representation
|
||||||
|
|
||||||
|
property :time_zone, as: 'timeZone'
|
||||||
|
property :user_update_time, as: 'userUpdateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListJobsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :jobs, as: 'jobs', class: Google::Apis::CloudschedulerV1::Job, decorator: Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::CloudschedulerV1::Location, decorator: Google::Apis::CloudschedulerV1::Location::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Location
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :location_id, as: 'locationId'
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PauseJobRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PubsubMessage
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :attributes, as: 'attributes'
|
||||||
|
property :data, :base64 => true, as: 'data'
|
||||||
|
property :message_id, as: 'messageId'
|
||||||
|
property :publish_time, as: 'publishTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PubsubTarget
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :attributes, as: 'attributes'
|
||||||
|
property :data, :base64 => true, as: 'data'
|
||||||
|
property :topic_name, as: 'topicName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ResumeJobRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RetryConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :max_backoff_duration, as: 'maxBackoffDuration'
|
||||||
|
property :max_doublings, as: 'maxDoublings'
|
||||||
|
property :max_retry_duration, as: 'maxRetryDuration'
|
||||||
|
property :min_backoff_duration, as: 'minBackoffDuration'
|
||||||
|
property :retry_count, as: 'retryCount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunJobRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Status
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,448 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module CloudschedulerV1
|
||||||
|
# Cloud Scheduler API
|
||||||
|
#
|
||||||
|
# Creates and manages jobs run on a regular recurring schedule.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/cloudscheduler_v1'
|
||||||
|
#
|
||||||
|
# Cloudscheduler = Google::Apis::CloudschedulerV1 # Alias the module
|
||||||
|
# service = Cloudscheduler::CloudSchedulerService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/scheduler/
|
||||||
|
class CloudSchedulerService < Google::Apis::Core::BaseService
|
||||||
|
# @return [String]
|
||||||
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
super('https://cloudscheduler.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets information about a location.
|
||||||
|
# @param [String] name
|
||||||
|
# Resource name for the location.
|
||||||
|
# @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::CloudschedulerV1::Location] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Location]
|
||||||
|
#
|
||||||
|
# @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_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Location::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Location
|
||||||
|
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 information about the supported locations for this service.
|
||||||
|
# @param [String] name
|
||||||
|
# The resource that owns the locations collection, if applicable.
|
||||||
|
# @param [String] filter
|
||||||
|
# The standard list filter.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The standard list page size.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The standard list page token.
|
||||||
|
# @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::CloudschedulerV1::ListLocationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::ListLocationsResponse]
|
||||||
|
#
|
||||||
|
# @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_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::ListLocationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::ListLocationsResponse
|
||||||
|
command.params['name'] = name unless name.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
|
||||||
|
|
||||||
|
# Creates a job.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required.
|
||||||
|
# The location name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID`.
|
||||||
|
# @param [Google::Apis::CloudschedulerV1::Job] job_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::CloudschedulerV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Job]
|
||||||
|
#
|
||||||
|
# @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_location_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
|
||||||
|
command.request_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.request_object = job_object
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Job
|
||||||
|
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 a job.
|
||||||
|
# @param [String] name
|
||||||
|
# Required.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_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::CloudschedulerV1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::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_location_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::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 job.
|
||||||
|
# @param [String] name
|
||||||
|
# Required.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_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::CloudschedulerV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Job]
|
||||||
|
#
|
||||||
|
# @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_location_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Job
|
||||||
|
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 jobs.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required.
|
||||||
|
# The location name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID`.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size.
|
||||||
|
# The maximum page size is 500. If unspecified, the page size will
|
||||||
|
# be the maximum. Fewer jobs than requested might be returned,
|
||||||
|
# even if more jobs exist; use next_page_token to determine if more
|
||||||
|
# jobs exist.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server will return. To
|
||||||
|
# request the first page results, page_token must be empty. To
|
||||||
|
# request the next page of results, page_token must be the value of
|
||||||
|
# next_page_token returned from
|
||||||
|
# the previous call to ListJobs. It is an error to
|
||||||
|
# switch the value of filter or
|
||||||
|
# order_by while iterating through pages.
|
||||||
|
# @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::CloudschedulerV1::ListJobsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::ListJobsResponse]
|
||||||
|
#
|
||||||
|
# @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_location_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::ListJobsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::ListJobsResponse
|
||||||
|
command.params['parent'] = parent unless parent.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 a job.
|
||||||
|
# If successful, the updated Job is returned. If the job does
|
||||||
|
# not exist, `NOT_FOUND` is returned.
|
||||||
|
# If UpdateJob does not successfully return, it is possible for the
|
||||||
|
# job to be in an Job.State.UPDATE_FAILED state. A job in this state may
|
||||||
|
# not be executed. If this happens, retry the UpdateJob request
|
||||||
|
# until a successful response is received.
|
||||||
|
# @param [String] name
|
||||||
|
# Optionally caller-specified in CreateJob, after
|
||||||
|
# which it becomes output only.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||||
|
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
||||||
|
# hyphens (-), colons (:), or periods (.).
|
||||||
|
# For more information, see
|
||||||
|
# [Identifying
|
||||||
|
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
||||||
|
# projects#identifying_projects)
|
||||||
|
# * `LOCATION_ID` is the canonical ID for the job's location.
|
||||||
|
# The list of available locations can be obtained by calling
|
||||||
|
# ListLocations.
|
||||||
|
# For more information, see https://cloud.google.com/about/locations/.
|
||||||
|
# * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
|
||||||
|
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
||||||
|
# @param [Google::Apis::CloudschedulerV1::Job] job_object
|
||||||
|
# @param [String] update_mask
|
||||||
|
# A mask used to specify which fields of the job are being updated.
|
||||||
|
# @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::CloudschedulerV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Job]
|
||||||
|
#
|
||||||
|
# @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_location_job(name, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.request_object = job_object
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Job
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Pauses a job.
|
||||||
|
# If a job is paused then the system will stop executing the job
|
||||||
|
# until it is re-enabled via ResumeJob. The
|
||||||
|
# state of the job is stored in state; if paused it
|
||||||
|
# will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED
|
||||||
|
# to be paused.
|
||||||
|
# @param [String] name
|
||||||
|
# Required.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||||
|
# @param [Google::Apis::CloudschedulerV1::PauseJobRequest] pause_job_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::CloudschedulerV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Job]
|
||||||
|
#
|
||||||
|
# @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 pause_job(name, pause_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:pause', options)
|
||||||
|
command.request_representation = Google::Apis::CloudschedulerV1::PauseJobRequest::Representation
|
||||||
|
command.request_object = pause_job_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Job
|
||||||
|
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
|
||||||
|
|
||||||
|
# Resume a job.
|
||||||
|
# This method reenables a job after it has been Job.State.PAUSED. The
|
||||||
|
# state of a job is stored in Job.state; after calling this method it
|
||||||
|
# will be set to Job.State.ENABLED. A job must be in
|
||||||
|
# Job.State.PAUSED to be resumed.
|
||||||
|
# @param [String] name
|
||||||
|
# Required.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||||
|
# @param [Google::Apis::CloudschedulerV1::ResumeJobRequest] resume_job_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::CloudschedulerV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Job]
|
||||||
|
#
|
||||||
|
# @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 resume_job(name, resume_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:resume', options)
|
||||||
|
command.request_representation = Google::Apis::CloudschedulerV1::ResumeJobRequest::Representation
|
||||||
|
command.request_object = resume_job_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Job
|
||||||
|
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
|
||||||
|
|
||||||
|
# Forces a job to run now.
|
||||||
|
# When this method is called, Cloud Scheduler will dispatch the job, even
|
||||||
|
# if the job is already running.
|
||||||
|
# @param [String] name
|
||||||
|
# Required.
|
||||||
|
# The job name. For example:
|
||||||
|
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||||
|
# @param [Google::Apis::CloudschedulerV1::RunJobRequest] run_job_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::CloudschedulerV1::Job] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudschedulerV1::Job]
|
||||||
|
#
|
||||||
|
# @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 run_job(name, run_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:run', options)
|
||||||
|
command.request_representation = Google::Apis::CloudschedulerV1::RunJobRequest::Representation
|
||||||
|
command.request_object = run_job_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudschedulerV1::Job::Representation
|
||||||
|
command.response_class = Google::Apis::CloudschedulerV1::Job
|
||||||
|
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
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://gsuite.google.com/products/cloud-search/
|
# @see https://gsuite.google.com/products/cloud-search/
|
||||||
module CloudsearchV1
|
module CloudsearchV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190321'
|
REVISION = '20190406'
|
||||||
|
|
||||||
# Index and serve your organization's data with Cloud Search
|
# Index and serve your organization's data with Cloud Search
|
||||||
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|
||||||
|
|
|
@ -269,6 +269,9 @@ module Google
|
||||||
# Filters with the same object type are joined conjunctively, then
|
# Filters with the same object type are joined conjunctively, then
|
||||||
# the resulting expressions are joined disjunctively.
|
# the resulting expressions are joined disjunctively.
|
||||||
# The maximum number of elements is 20.
|
# The maximum number of elements is 20.
|
||||||
|
# NOTE: Suggest API supports only few filters at the moment:
|
||||||
|
# "objecttype", "type" and "mimetype".
|
||||||
|
# For now, schema specific filters cannot be used to filter suggestions.
|
||||||
# Corresponds to the JSON property `filterOptions`
|
# Corresponds to the JSON property `filterOptions`
|
||||||
# @return [Array<Google::Apis::CloudsearchV1::FilterOptions>]
|
# @return [Array<Google::Apis::CloudsearchV1::FilterOptions>]
|
||||||
attr_accessor :filter_options
|
attr_accessor :filter_options
|
||||||
|
@ -425,8 +428,8 @@ module Google
|
||||||
class DebugOptions
|
class DebugOptions
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# Corresponds to the JSON property `enableDebugging`
|
# Corresponds to the JSON property `enableDebugging`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :enable_debugging
|
attr_accessor :enable_debugging
|
||||||
|
@ -2611,7 +2614,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A people suggestion.
|
# This field contains information about the person being suggested.
|
||||||
class PeopleSuggestion
|
class PeopleSuggestion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3304,7 +3307,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A completed query suggestion.
|
# This field does not contain anything as of now and is just used as an
|
||||||
|
# indicator that the suggest result was a phrase completion.
|
||||||
class QuerySuggestion
|
class QuerySuggestion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3362,6 +3366,10 @@ module Google
|
||||||
# For more information, see
|
# For more information, see
|
||||||
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||||
# For translations.
|
# For translations.
|
||||||
|
# When specified, the documents in search results are biased towards the
|
||||||
|
# specified language.
|
||||||
|
# Suggest API does not use this parameter. It autocompletes only based on
|
||||||
|
# characters in the query.
|
||||||
# Corresponds to the JSON property `languageCode`
|
# Corresponds to the JSON property `languageCode`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :language_code
|
attr_accessor :language_code
|
||||||
|
@ -4441,11 +4449,15 @@ module Google
|
||||||
|
|
||||||
# The sources to use for suggestions. If not specified, all data sources
|
# The sources to use for suggestions. If not specified, all data sources
|
||||||
# from the current search application are used.
|
# from the current search application are used.
|
||||||
|
# Suggestions are based on Gmail titles. Suggestions from third party sources
|
||||||
|
# are not available.
|
||||||
# Corresponds to the JSON property `dataSourceRestrictions`
|
# Corresponds to the JSON property `dataSourceRestrictions`
|
||||||
# @return [Array<Google::Apis::CloudsearchV1::DataSourceRestriction>]
|
# @return [Array<Google::Apis::CloudsearchV1::DataSourceRestriction>]
|
||||||
attr_accessor :data_source_restrictions
|
attr_accessor :data_source_restrictions
|
||||||
|
|
||||||
# Partial query for the completion suggestion.
|
# Partial query for which autocomplete suggestions will be shown.
|
||||||
|
# For example, if the query is "sea", then the server might return
|
||||||
|
# "season", "search", "seagull" and so on.
|
||||||
# Corresponds to the JSON property `query`
|
# Corresponds to the JSON property `query`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :query
|
attr_accessor :query
|
||||||
|
@ -4471,7 +4483,7 @@ module Google
|
||||||
class SuggestResponse
|
class SuggestResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# List of suggestion results.
|
# List of suggestions.
|
||||||
# Corresponds to the JSON property `suggestResults`
|
# Corresponds to the JSON property `suggestResults`
|
||||||
# @return [Array<Google::Apis::CloudsearchV1::SuggestResult>]
|
# @return [Array<Google::Apis::CloudsearchV1::SuggestResult>]
|
||||||
attr_accessor :suggest_results
|
attr_accessor :suggest_results
|
||||||
|
@ -4490,12 +4502,13 @@ module Google
|
||||||
class SuggestResult
|
class SuggestResult
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# A people suggestion.
|
# This field contains information about the person being suggested.
|
||||||
# Corresponds to the JSON property `peopleSuggestion`
|
# Corresponds to the JSON property `peopleSuggestion`
|
||||||
# @return [Google::Apis::CloudsearchV1::PeopleSuggestion]
|
# @return [Google::Apis::CloudsearchV1::PeopleSuggestion]
|
||||||
attr_accessor :people_suggestion
|
attr_accessor :people_suggestion
|
||||||
|
|
||||||
# A completed query suggestion.
|
# This field does not contain anything as of now and is just used as an
|
||||||
|
# indicator that the suggest result was a phrase completion.
|
||||||
# Corresponds to the JSON property `querySuggestion`
|
# Corresponds to the JSON property `querySuggestion`
|
||||||
# @return [Google::Apis::CloudsearchV1::QuerySuggestion]
|
# @return [Google::Apis::CloudsearchV1::QuerySuggestion]
|
||||||
attr_accessor :query_suggestion
|
attr_accessor :query_suggestion
|
||||||
|
|
|
@ -54,8 +54,8 @@ module Google
|
||||||
# datasources/`source_id`/items/`item_id`
|
# datasources/`source_id`/items/`item_id`
|
||||||
# @param [Google::Apis::CloudsearchV1::Principal] principal_object
|
# @param [Google::Apis::CloudsearchV1::Principal] principal_object
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -126,8 +126,8 @@ module Google
|
||||||
# The name of the item, in the following format:
|
# The name of the item, in the following format:
|
||||||
# datasources/`source_id`/items/`ID`
|
# datasources/`source_id`/items/`ID`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of items to fetch in a request.
|
# Maximum number of items to fetch in a request.
|
||||||
# Defaults to 100.
|
# Defaults to 100.
|
||||||
|
@ -168,8 +168,8 @@ module Google
|
||||||
# The name of the identity source, in the following format:
|
# The name of the identity source, in the following format:
|
||||||
# identitysources/`source_id``
|
# identitysources/`source_id``
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] group_resource_name
|
# @param [String] group_resource_name
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of items to fetch in a request.
|
# Maximum number of items to fetch in a request.
|
||||||
|
@ -214,8 +214,8 @@ module Google
|
||||||
# The name of the identity source, in the following format:
|
# The name of the identity source, in the following format:
|
||||||
# identitysources/`source_id`
|
# identitysources/`source_id`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of items to fetch in a request.
|
# Maximum number of items to fetch in a request.
|
||||||
# Defaults to 100.
|
# Defaults to 100.
|
||||||
|
@ -259,8 +259,8 @@ module Google
|
||||||
# Name of the data source to delete Schema. Format:
|
# Name of the data source to delete Schema. Format:
|
||||||
# datasources/`source_id`
|
# datasources/`source_id`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -294,8 +294,8 @@ module Google
|
||||||
# Name of the data source to get Schema. Format:
|
# Name of the data source to get Schema. Format:
|
||||||
# datasources/`source_id`
|
# datasources/`source_id`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -367,8 +367,8 @@ module Google
|
||||||
# Name of connector making this call.
|
# Name of connector making this call.
|
||||||
# <br />Format: datasources/`source_id`/connectors/`ID`
|
# <br />Format: datasources/`source_id`/connectors/`ID`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] mode
|
# @param [String] mode
|
||||||
# Required. The RequestMode for this request.
|
# Required. The RequestMode for this request.
|
||||||
# @param [String] version
|
# @param [String] version
|
||||||
|
@ -455,8 +455,8 @@ module Google
|
||||||
# Name of connector making this call.
|
# Name of connector making this call.
|
||||||
# <br />Format: datasources/`source_id`/connectors/`ID`
|
# <br />Format: datasources/`source_id`/connectors/`ID`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -542,8 +542,8 @@ module Google
|
||||||
# Name of connector making this call.
|
# Name of connector making this call.
|
||||||
# <br />Format: datasources/`source_id`/connectors/`ID`
|
# <br />Format: datasources/`source_id`/connectors/`ID`
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of items to fetch in a request.
|
# Maximum number of items to fetch in a request.
|
||||||
# The max value is 1000 when brief is true. The max value is 10 if brief
|
# The max value is 1000 when brief is true. The max value is 10 if brief
|
||||||
|
@ -903,13 +903,17 @@ module Google
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Number of sources to return in the response.
|
# Number of sources to return in the response.
|
||||||
# @param [Boolean] request_options_debug_options_enable_debugging
|
# @param [Boolean] request_options_debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] request_options_language_code
|
# @param [String] request_options_language_code
|
||||||
# The BCP-47 language code, such as "en-US" or "sr-Latn".
|
# The BCP-47 language code, such as "en-US" or "sr-Latn".
|
||||||
# For more information, see
|
# For more information, see
|
||||||
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||||
# For translations.
|
# For translations.
|
||||||
|
# When specified, the documents in search results are biased towards the
|
||||||
|
# specified language.
|
||||||
|
# Suggest API does not use this parameter. It autocompletes only based on
|
||||||
|
# characters in the query.
|
||||||
# @param [String] request_options_search_application_id
|
# @param [String] request_options_search_application_id
|
||||||
# Id of the application created using SearchApplicationsService.
|
# Id of the application created using SearchApplicationsService.
|
||||||
# @param [String] request_options_time_zone
|
# @param [String] request_options_time_zone
|
||||||
|
@ -984,8 +988,8 @@ module Google
|
||||||
# Name of the datasource.
|
# Name of the datasource.
|
||||||
# Format: datasources/`source_id`.
|
# Format: datasources/`source_id`.
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1019,8 +1023,8 @@ module Google
|
||||||
# Name of the datasource resource.
|
# Name of the datasource resource.
|
||||||
# Format: datasources/`source_id`.
|
# Format: datasources/`source_id`.
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1051,8 +1055,8 @@ module Google
|
||||||
|
|
||||||
# Lists datasources.
|
# Lists datasources.
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of datasources to fetch in a request.
|
# Maximum number of datasources to fetch in a request.
|
||||||
# The max value is 100.
|
# The max value is 100.
|
||||||
|
@ -1158,8 +1162,8 @@ module Google
|
||||||
# The name of the search application to be deleted.
|
# The name of the search application to be deleted.
|
||||||
# <br />Format: applications/`application_id`.
|
# <br />Format: applications/`application_id`.
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1193,8 +1197,8 @@ module Google
|
||||||
# Name of the search application.
|
# Name of the search application.
|
||||||
# <br />Format: applications/`application_id`.
|
# <br />Format: applications/`application_id`.
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1225,8 +1229,8 @@ module Google
|
||||||
|
|
||||||
# Lists all search applications.
|
# Lists all search applications.
|
||||||
# @param [Boolean] debug_options_enable_debugging
|
# @param [Boolean] debug_options_enable_debugging
|
||||||
# If set, the request will enable debugging features of Cloud Search.
|
# If you are asked by Google to help with debugging, set this field.
|
||||||
# Only turn on this field, if asked by Google to help with debugging.
|
# Otherwise, ignore this field.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The maximum number of items to return.
|
# The maximum number of items to return.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/tasks/
|
# @see https://cloud.google.com/tasks/
|
||||||
module CloudtasksV2
|
module CloudtasksV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20190326'
|
REVISION = '20190412'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -124,9 +124,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required.
|
# Required.
|
||||||
# The location name in which the queue will be created.
|
# The location name in which the queue will be created.
|
||||||
|
@ -171,9 +171,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required.
|
# Required.
|
||||||
# The queue name. For example:
|
# The queue name. For example:
|
||||||
|
@ -288,8 +288,8 @@ module Google
|
||||||
# field can be used as a filter and several operators as supported.
|
# field can be used as a filter and several operators as supported.
|
||||||
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
||||||
# described in
|
# described in
|
||||||
# [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/
|
# [Stackdriver's Advanced Logs
|
||||||
# view/advanced_filters).
|
# Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
|
||||||
# Sample filter "state: PAUSED".
|
# Sample filter "state: PAUSED".
|
||||||
# Note that using filters might cause fewer queues than the
|
# Note that using filters might cause fewer queues than the
|
||||||
# requested page_size to be returned.
|
# requested page_size to be returned.
|
||||||
|
@ -348,9 +348,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Caller-specified and required in CreateQueue,
|
# Caller-specified and required in CreateQueue,
|
||||||
# after which it becomes output only.
|
# after which it becomes output only.
|
||||||
|
@ -490,8 +490,8 @@ module Google
|
||||||
# WARNING: Resuming many high-QPS queues at the same time can
|
# WARNING: Resuming many high-QPS queues at the same time can
|
||||||
# lead to target overloading. If you are resuming high-QPS
|
# lead to target overloading. If you are resuming high-QPS
|
||||||
# queues, follow the 500/50/5 pattern described in
|
# queues, follow the 500/50/5 pattern described in
|
||||||
# [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/
|
# [Managing Cloud Tasks Scaling
|
||||||
# manage-cloud-task-scaling).
|
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required.
|
# Required.
|
||||||
# The queue name. For example:
|
# The queue name. For example:
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/tasks/
|
# @see https://cloud.google.com/tasks/
|
||||||
module CloudtasksV2beta2
|
module CloudtasksV2beta2
|
||||||
VERSION = 'V2beta2'
|
VERSION = 'V2beta2'
|
||||||
REVISION = '20190326'
|
REVISION = '20190412'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -124,9 +124,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required.
|
# Required.
|
||||||
# The location name in which the queue will be created.
|
# The location name in which the queue will be created.
|
||||||
|
@ -171,9 +171,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required.
|
# Required.
|
||||||
# The queue name. For example:
|
# The queue name. For example:
|
||||||
|
@ -288,8 +288,8 @@ module Google
|
||||||
# field can be used as a filter and several operators as supported.
|
# field can be used as a filter and several operators as supported.
|
||||||
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
||||||
# described in
|
# described in
|
||||||
# [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/
|
# [Stackdriver's Advanced Logs
|
||||||
# view/advanced_filters).
|
# Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
|
||||||
# Sample filter "app_engine_http_target: *".
|
# Sample filter "app_engine_http_target: *".
|
||||||
# Note that using filters might cause fewer queues than the
|
# Note that using filters might cause fewer queues than the
|
||||||
# requested_page size to be returned.
|
# requested_page size to be returned.
|
||||||
|
@ -348,9 +348,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Caller-specified and required in CreateQueue,
|
# Caller-specified and required in CreateQueue,
|
||||||
# after which it becomes output only.
|
# after which it becomes output only.
|
||||||
|
@ -490,8 +490,8 @@ module Google
|
||||||
# WARNING: Resuming many high-QPS queues at the same time can
|
# WARNING: Resuming many high-QPS queues at the same time can
|
||||||
# lead to target overloading. If you are resuming high-QPS
|
# lead to target overloading. If you are resuming high-QPS
|
||||||
# queues, follow the 500/50/5 pattern described in
|
# queues, follow the 500/50/5 pattern described in
|
||||||
# [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/
|
# [Managing Cloud Tasks Scaling
|
||||||
# manage-cloud-task-scaling).
|
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required.
|
# Required.
|
||||||
# The queue name. For example:
|
# The queue name. For example:
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/tasks/
|
# @see https://cloud.google.com/tasks/
|
||||||
module CloudtasksV2beta3
|
module CloudtasksV2beta3
|
||||||
VERSION = 'V2beta3'
|
VERSION = 'V2beta3'
|
||||||
REVISION = '20190326'
|
REVISION = '20190412'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -124,9 +124,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required.
|
# Required.
|
||||||
# The location name in which the queue will be created.
|
# The location name in which the queue will be created.
|
||||||
|
@ -171,9 +171,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required.
|
# Required.
|
||||||
# The queue name. For example:
|
# The queue name. For example:
|
||||||
|
@ -288,8 +288,8 @@ module Google
|
||||||
# field can be used as a filter and several operators as supported.
|
# field can be used as a filter and several operators as supported.
|
||||||
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
# For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
||||||
# described in
|
# described in
|
||||||
# [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/
|
# [Stackdriver's Advanced Logs
|
||||||
# view/advanced_filters).
|
# Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
|
||||||
# Sample filter "state: PAUSED".
|
# Sample filter "state: PAUSED".
|
||||||
# Note that using filters might cause fewer queues than the
|
# Note that using filters might cause fewer queues than the
|
||||||
# requested page_size to be returned.
|
# requested page_size to be returned.
|
||||||
|
@ -348,9 +348,9 @@ module Google
|
||||||
# WARNING: Using this method may have unintended side effects if you are
|
# WARNING: Using this method may have unintended side effects if you are
|
||||||
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||||
# Read
|
# Read
|
||||||
# [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/
|
# [Overview of Queue Management and
|
||||||
# docs/queue-yaml)
|
# queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||||
# before using this method.
|
# this method.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Caller-specified and required in CreateQueue,
|
# Caller-specified and required in CreateQueue,
|
||||||
# after which it becomes output only.
|
# after which it becomes output only.
|
||||||
|
@ -490,8 +490,8 @@ module Google
|
||||||
# WARNING: Resuming many high-QPS queues at the same time can
|
# WARNING: Resuming many high-QPS queues at the same time can
|
||||||
# lead to target overloading. If you are resuming high-QPS
|
# lead to target overloading. If you are resuming high-QPS
|
||||||
# queues, follow the 500/50/5 pattern described in
|
# queues, follow the 500/50/5 pattern described in
|
||||||
# [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/
|
# [Managing Cloud Tasks Scaling
|
||||||
# manage-cloud-task-scaling).
|
# Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required.
|
# Required.
|
||||||
# The queue name. For example:
|
# The queue name. For example:
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/commentanalyzer_v1alpha1/service.rb'
|
||||||
|
require 'google/apis/commentanalyzer_v1alpha1/classes.rb'
|
||||||
|
require 'google/apis/commentanalyzer_v1alpha1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Perspective Comment Analyzer API
|
||||||
|
#
|
||||||
|
# The Perspective Comment Analyzer API provides information about the potential
|
||||||
|
# impact of a comment on a conversation (e.g. it can provide a score for the "
|
||||||
|
# toxicity" of a comment). Users can leverage the "SuggestCommentScore" method
|
||||||
|
# to submit corrections to improve Perspective over time. Users can set the "
|
||||||
|
# doNotStore" flag to ensure that all submitted comments are automatically
|
||||||
|
# deleted after scores are returned.
|
||||||
|
#
|
||||||
|
# @see https://conversationai.github.io/
|
||||||
|
module CommentanalyzerV1alpha1
|
||||||
|
VERSION = 'V1alpha1'
|
||||||
|
REVISION = '20190414'
|
||||||
|
|
||||||
|
# View your email address
|
||||||
|
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,484 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module CommentanalyzerV1alpha1
|
||||||
|
|
||||||
|
# The comment analysis request message.
|
||||||
|
class AnalyzeCommentRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Opaque token that is echoed from the request to the response.
|
||||||
|
# Corresponds to the JSON property `clientToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_token
|
||||||
|
|
||||||
|
# Represents a body of text.
|
||||||
|
# Corresponds to the JSON property `comment`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||||
|
attr_accessor :comment
|
||||||
|
|
||||||
|
# Optional identifier associating this AnalyzeCommentRequest with a
|
||||||
|
# particular client's community. Different communities may have different
|
||||||
|
# norms and rules. Specifying this value enables us to explore building
|
||||||
|
# community-specific models for clients.
|
||||||
|
# Corresponds to the JSON property `communityId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :community_id
|
||||||
|
|
||||||
|
# Context is typically something that a Comment is referencing or replying to
|
||||||
|
# (such as an article, or previous comment).
|
||||||
|
# Note: Populate only ONE OF the following fields. The oneof syntax cannot be
|
||||||
|
# used because that would require nesting entries inside another message and
|
||||||
|
# breaking backwards compatibility. The server will return an error if more
|
||||||
|
# than one of the following fields is present.
|
||||||
|
# Corresponds to the JSON property `context`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::Context]
|
||||||
|
attr_accessor :context
|
||||||
|
|
||||||
|
# Do not store the comment or context sent in this request. By default, the
|
||||||
|
# service may store comments/context for debugging purposes.
|
||||||
|
# Corresponds to the JSON property `doNotStore`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :do_not_store
|
||||||
|
alias_method :do_not_store?, :do_not_store
|
||||||
|
|
||||||
|
# The language(s) of the comment and context (if none are specified, the
|
||||||
|
# language is automatically detected). If multiple languages are specified,
|
||||||
|
# the text is checked in all of them that are supported. Both ISO and BCP-47
|
||||||
|
# language codes are accepted.
|
||||||
|
# Current Language Restrictions:
|
||||||
|
# * Only English text ("en") is supported.
|
||||||
|
# If none of the languages specified by the caller are supported, an
|
||||||
|
# `UNIMPLEMENTED` error is returned.
|
||||||
|
# Corresponds to the JSON property `languages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :languages
|
||||||
|
|
||||||
|
# Specification of requested attributes. The AttributeParameters serve as
|
||||||
|
# configuration for each associated attribute. The map keys are attribute
|
||||||
|
# names. The following attributes are available:
|
||||||
|
# "ATTACK_ON_AUTHOR" - Attack on author of original article or post.
|
||||||
|
# "ATTACK_ON_COMMENTER" - Attack on fellow commenter.
|
||||||
|
# "ATTACK_ON_PUBLISHER" - Attack on publisher of article/post.
|
||||||
|
# "INCOHERENT" - Difficult to understand, nonsensical.
|
||||||
|
# "INFLAMMATORY" - Intending to provoke or inflame.
|
||||||
|
# "OBSCENE" - Obscene, such as cursing.
|
||||||
|
# "OFF_TOPIC" - Not related to the original topic.
|
||||||
|
# "SPAM" - Commercial/advertising spam content.
|
||||||
|
# "UNSUBSTANTIAL" - Trivial.
|
||||||
|
# Corresponds to the JSON property `requestedAttributes`
|
||||||
|
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeParameters>]
|
||||||
|
attr_accessor :requested_attributes
|
||||||
|
|
||||||
|
# Session ID. Used to join related RPCs into a single session. For example,
|
||||||
|
# an interactive tool that calls both the AnalyzeComment and
|
||||||
|
# SuggestCommentScore RPCs should set all invocations of both RPCs to the
|
||||||
|
# same Session ID, typically a random 64-bit integer.
|
||||||
|
# Corresponds to the JSON property `sessionId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :session_id
|
||||||
|
|
||||||
|
# An advisory parameter that will return span annotations if the model
|
||||||
|
# is capable of providing scores with sub-comment resolution. This will
|
||||||
|
# likely increase the size of the returned message.
|
||||||
|
# Corresponds to the JSON property `spanAnnotations`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :span_annotations
|
||||||
|
alias_method :span_annotations?, :span_annotations
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@client_token = args[:client_token] if args.key?(:client_token)
|
||||||
|
@comment = args[:comment] if args.key?(:comment)
|
||||||
|
@community_id = args[:community_id] if args.key?(:community_id)
|
||||||
|
@context = args[:context] if args.key?(:context)
|
||||||
|
@do_not_store = args[:do_not_store] if args.key?(:do_not_store)
|
||||||
|
@languages = args[:languages] if args.key?(:languages)
|
||||||
|
@requested_attributes = args[:requested_attributes] if args.key?(:requested_attributes)
|
||||||
|
@session_id = args[:session_id] if args.key?(:session_id)
|
||||||
|
@span_annotations = args[:span_annotations] if args.key?(:span_annotations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The comment analysis response message.
|
||||||
|
class AnalyzeCommentResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Scores for the requested attributes. The map keys are attribute names (same
|
||||||
|
# as the requested_attribute field in AnalyzeCommentRequest, for example
|
||||||
|
# "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc).
|
||||||
|
# Corresponds to the JSON property `attributeScores`
|
||||||
|
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeScores>]
|
||||||
|
attr_accessor :attribute_scores
|
||||||
|
|
||||||
|
# Same token from the original AnalyzeCommentRequest.
|
||||||
|
# Corresponds to the JSON property `clientToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_token
|
||||||
|
|
||||||
|
# Contains the language as detected from the text content. If no language
|
||||||
|
# was specified in the request, the first (the most likely) language is used
|
||||||
|
# to select an appropriate model. Sorted in order of likelihood.
|
||||||
|
# Corresponds to the JSON property `detectedLanguages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :detected_languages
|
||||||
|
|
||||||
|
# The language(s) requested by the client, as specified in the request. If
|
||||||
|
# the request did not specify any language, this will be empty and the
|
||||||
|
# detected_languages field will be populated.
|
||||||
|
# Corresponds to the JSON property `languages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :languages
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attribute_scores = args[:attribute_scores] if args.key?(:attribute_scores)
|
||||||
|
@client_token = args[:client_token] if args.key?(:client_token)
|
||||||
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
||||||
|
@languages = args[:languages] if args.key?(:languages)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A type of context specific to a comment left on a single-threaded comment
|
||||||
|
# message board, where comments are either a top level comment or the child of
|
||||||
|
# a top level comment.
|
||||||
|
class ArticleAndParentComment
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents a body of text.
|
||||||
|
# Corresponds to the JSON property `article`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||||
|
attr_accessor :article
|
||||||
|
|
||||||
|
# Represents a body of text.
|
||||||
|
# Corresponds to the JSON property `parentComment`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||||
|
attr_accessor :parent_comment
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@article = args[:article] if args.key?(:article)
|
||||||
|
@parent_comment = args[:parent_comment] if args.key?(:parent_comment)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Configurable parameters for attribute scoring.
|
||||||
|
class AttributeParameters
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Don't return scores for this attribute that are below this threshold. If
|
||||||
|
# unset, a default threshold will be applied. A FloatValue wrapper is used to
|
||||||
|
# distinguish between 0 vs. default/unset.
|
||||||
|
# Corresponds to the JSON property `scoreThreshold`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :score_threshold
|
||||||
|
|
||||||
|
# What type of scores to return. If unset, defaults to probability scores.
|
||||||
|
# Corresponds to the JSON property `scoreType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :score_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@score_threshold = args[:score_threshold] if args.key?(:score_threshold)
|
||||||
|
@score_type = args[:score_type] if args.key?(:score_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This holds score values for a single attribute. It contains both per-span
|
||||||
|
# scores as well as an overall summary score..
|
||||||
|
class AttributeScores
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Per-span scores.
|
||||||
|
# Corresponds to the JSON property `spanScores`
|
||||||
|
# @return [Array<Google::Apis::CommentanalyzerV1alpha1::SpanScore>]
|
||||||
|
attr_accessor :span_scores
|
||||||
|
|
||||||
|
# Analysis scores are described by a value and a ScoreType.
|
||||||
|
# Corresponds to the JSON property `summaryScore`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::Score]
|
||||||
|
attr_accessor :summary_score
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@span_scores = args[:span_scores] if args.key?(:span_scores)
|
||||||
|
@summary_score = args[:summary_score] if args.key?(:summary_score)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Context is typically something that a Comment is referencing or replying to
|
||||||
|
# (such as an article, or previous comment).
|
||||||
|
# Note: Populate only ONE OF the following fields. The oneof syntax cannot be
|
||||||
|
# used because that would require nesting entries inside another message and
|
||||||
|
# breaking backwards compatibility. The server will return an error if more
|
||||||
|
# than one of the following fields is present.
|
||||||
|
class Context
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A type of context specific to a comment left on a single-threaded comment
|
||||||
|
# message board, where comments are either a top level comment or the child of
|
||||||
|
# a top level comment.
|
||||||
|
# Corresponds to the JSON property `articleAndParentComment`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment]
|
||||||
|
attr_accessor :article_and_parent_comment
|
||||||
|
|
||||||
|
# A list of messages. For example, a linear comments section or forum thread.
|
||||||
|
# Corresponds to the JSON property `entries`
|
||||||
|
# @return [Array<Google::Apis::CommentanalyzerV1alpha1::TextEntry>]
|
||||||
|
attr_accessor :entries
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@article_and_parent_comment = args[:article_and_parent_comment] if args.key?(:article_and_parent_comment)
|
||||||
|
@entries = args[:entries] if args.key?(:entries)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Analysis scores are described by a value and a ScoreType.
|
||||||
|
class Score
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The type of the above value.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
# Score value. Semantics described by type below.
|
||||||
|
# Corresponds to the JSON property `value`
|
||||||
|
# @return [Float]
|
||||||
|
attr_accessor :value
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
@value = args[:value] if args.key?(:value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# This is a single score for a given span of text.
|
||||||
|
class SpanScore
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# "begin" and "end" describe the span of the original text that the attribute
|
||||||
|
# score applies to. The values are the UTF-16 codepoint range. "end" is
|
||||||
|
# exclusive. For example, with the text "Hi there", the begin/end pair (0,2)
|
||||||
|
# describes the text "Hi".
|
||||||
|
# If "begin" and "end" are unset, the score applies to the full text.
|
||||||
|
# Corresponds to the JSON property `begin`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :begin
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `end`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :end
|
||||||
|
|
||||||
|
# Analysis scores are described by a value and a ScoreType.
|
||||||
|
# Corresponds to the JSON property `score`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::Score]
|
||||||
|
attr_accessor :score
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@begin = args[:begin] if args.key?(:begin)
|
||||||
|
@end = args[:end] if args.key?(:end)
|
||||||
|
@score = args[:score] if args.key?(:score)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The comment score suggestion request message.
|
||||||
|
class SuggestCommentScoreRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Attribute scores for the comment. The map keys are attribute names, same as
|
||||||
|
# the requested_attribute field in AnalyzeCommentRequest (for example
|
||||||
|
# "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc.). This field has the same type as
|
||||||
|
# the `attribute_scores` field in AnalyzeCommentResponse.
|
||||||
|
# To specify an overall attribute score for the entire comment as a whole,
|
||||||
|
# use the `summary_score` field of the mapped AttributeScores object. To
|
||||||
|
# specify scores on specific subparts of the comment, use the `span_scores`
|
||||||
|
# field. All SpanScore objects must have begin and end fields set.
|
||||||
|
# All Score objects must be explicitly set (for binary classification, use
|
||||||
|
# the score values 0 and 1). If Score objects don't include a ScoreType,
|
||||||
|
# `PROBABILITY` is assumed.
|
||||||
|
# `attribute_scores` must not be empty. The mapped AttributeScores objects
|
||||||
|
# also must not be empty. An `INVALID_ARGUMENT` error is returned for all
|
||||||
|
# malformed requests.
|
||||||
|
# Corresponds to the JSON property `attributeScores`
|
||||||
|
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeScores>]
|
||||||
|
attr_accessor :attribute_scores
|
||||||
|
|
||||||
|
# Opaque token that is echoed from the request to the response.
|
||||||
|
# Corresponds to the JSON property `clientToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_token
|
||||||
|
|
||||||
|
# Represents a body of text.
|
||||||
|
# Corresponds to the JSON property `comment`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||||
|
attr_accessor :comment
|
||||||
|
|
||||||
|
# Optional identifier associating this comment score suggestion with a
|
||||||
|
# particular sub-community. Different communities may have different norms
|
||||||
|
# and rules. Specifying this value enables training community-specific
|
||||||
|
# models.
|
||||||
|
# Corresponds to the JSON property `communityId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :community_id
|
||||||
|
|
||||||
|
# Context is typically something that a Comment is referencing or replying to
|
||||||
|
# (such as an article, or previous comment).
|
||||||
|
# Note: Populate only ONE OF the following fields. The oneof syntax cannot be
|
||||||
|
# used because that would require nesting entries inside another message and
|
||||||
|
# breaking backwards compatibility. The server will return an error if more
|
||||||
|
# than one of the following fields is present.
|
||||||
|
# Corresponds to the JSON property `context`
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::Context]
|
||||||
|
attr_accessor :context
|
||||||
|
|
||||||
|
# The language(s) of the comment and context (if none are specified, the
|
||||||
|
# language is automatically detected). If multiple languages are specified,
|
||||||
|
# the text is checked in all of them that are supported. Both ISO and BCP-47
|
||||||
|
# language codes are accepted.
|
||||||
|
# Current Language Restrictions:
|
||||||
|
# * Only English text ("en") is supported.
|
||||||
|
# If none of the languages specified by the caller are supported, an
|
||||||
|
# `UNIMPLEMENTED` error is returned.
|
||||||
|
# Corresponds to the JSON property `languages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :languages
|
||||||
|
|
||||||
|
# Session ID. Used to join related RPCs into a single session. For example,
|
||||||
|
# an interactive tool that calls both the AnalyzeComment and
|
||||||
|
# SuggestCommentScore RPCs should set all invocations of both RPCs to the
|
||||||
|
# same Session ID, typically a random 64-bit integer.
|
||||||
|
# Corresponds to the JSON property `sessionId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :session_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@attribute_scores = args[:attribute_scores] if args.key?(:attribute_scores)
|
||||||
|
@client_token = args[:client_token] if args.key?(:client_token)
|
||||||
|
@comment = args[:comment] if args.key?(:comment)
|
||||||
|
@community_id = args[:community_id] if args.key?(:community_id)
|
||||||
|
@context = args[:context] if args.key?(:context)
|
||||||
|
@languages = args[:languages] if args.key?(:languages)
|
||||||
|
@session_id = args[:session_id] if args.key?(:session_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The comment score suggestion response message.
|
||||||
|
class SuggestCommentScoreResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Same token from the original SuggestCommentScoreRequest.
|
||||||
|
# Corresponds to the JSON property `clientToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_token
|
||||||
|
|
||||||
|
# The list of languages detected from the comment text.
|
||||||
|
# Corresponds to the JSON property `detectedLanguages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :detected_languages
|
||||||
|
|
||||||
|
# The list of languages provided in the request.
|
||||||
|
# Corresponds to the JSON property `requestedLanguages`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :requested_languages
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@client_token = args[:client_token] if args.key?(:client_token)
|
||||||
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
||||||
|
@requested_languages = args[:requested_languages] if args.key?(:requested_languages)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a body of text.
|
||||||
|
class TextEntry
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# UTF-8 encoded text.
|
||||||
|
# Corresponds to the JSON property `text`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :text
|
||||||
|
|
||||||
|
# Type of the text field.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@text = args[:text] if args.key?(:text)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,210 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'date'
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module CommentanalyzerV1alpha1
|
||||||
|
|
||||||
|
class AnalyzeCommentRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeCommentResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ArticleAndParentComment
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AttributeParameters
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AttributeScores
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Context
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Score
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SpanScore
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SuggestCommentScoreRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SuggestCommentScoreResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class TextEntry
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeCommentRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :client_token, as: 'clientToken'
|
||||||
|
property :comment, as: 'comment', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||||
|
|
||||||
|
property :community_id, as: 'communityId'
|
||||||
|
property :context, as: 'context', class: Google::Apis::CommentanalyzerV1alpha1::Context, decorator: Google::Apis::CommentanalyzerV1alpha1::Context::Representation
|
||||||
|
|
||||||
|
property :do_not_store, as: 'doNotStore'
|
||||||
|
collection :languages, as: 'languages'
|
||||||
|
hash :requested_attributes, as: 'requestedAttributes', class: Google::Apis::CommentanalyzerV1alpha1::AttributeParameters, decorator: Google::Apis::CommentanalyzerV1alpha1::AttributeParameters::Representation
|
||||||
|
|
||||||
|
property :session_id, as: 'sessionId'
|
||||||
|
property :span_annotations, as: 'spanAnnotations'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AnalyzeCommentResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :attribute_scores, as: 'attributeScores', class: Google::Apis::CommentanalyzerV1alpha1::AttributeScores, decorator: Google::Apis::CommentanalyzerV1alpha1::AttributeScores::Representation
|
||||||
|
|
||||||
|
property :client_token, as: 'clientToken'
|
||||||
|
collection :detected_languages, as: 'detectedLanguages'
|
||||||
|
collection :languages, as: 'languages'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ArticleAndParentComment
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :article, as: 'article', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||||
|
|
||||||
|
property :parent_comment, as: 'parentComment', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AttributeParameters
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :score_threshold, as: 'scoreThreshold'
|
||||||
|
property :score_type, as: 'scoreType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AttributeScores
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :span_scores, as: 'spanScores', class: Google::Apis::CommentanalyzerV1alpha1::SpanScore, decorator: Google::Apis::CommentanalyzerV1alpha1::SpanScore::Representation
|
||||||
|
|
||||||
|
property :summary_score, as: 'summaryScore', class: Google::Apis::CommentanalyzerV1alpha1::Score, decorator: Google::Apis::CommentanalyzerV1alpha1::Score::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Context
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :article_and_parent_comment, as: 'articleAndParentComment', class: Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment, decorator: Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment::Representation
|
||||||
|
|
||||||
|
collection :entries, as: 'entries', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Score
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SpanScore
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :begin, as: 'begin'
|
||||||
|
property :end, as: 'end'
|
||||||
|
property :score, as: 'score', class: Google::Apis::CommentanalyzerV1alpha1::Score, decorator: Google::Apis::CommentanalyzerV1alpha1::Score::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SuggestCommentScoreRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
hash :attribute_scores, as: 'attributeScores', class: Google::Apis::CommentanalyzerV1alpha1::AttributeScores, decorator: Google::Apis::CommentanalyzerV1alpha1::AttributeScores::Representation
|
||||||
|
|
||||||
|
property :client_token, as: 'clientToken'
|
||||||
|
property :comment, as: 'comment', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||||
|
|
||||||
|
property :community_id, as: 'communityId'
|
||||||
|
property :context, as: 'context', class: Google::Apis::CommentanalyzerV1alpha1::Context, decorator: Google::Apis::CommentanalyzerV1alpha1::Context::Representation
|
||||||
|
|
||||||
|
collection :languages, as: 'languages'
|
||||||
|
property :session_id, as: 'sessionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SuggestCommentScoreResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :client_token, as: 'clientToken'
|
||||||
|
collection :detected_languages, as: 'detectedLanguages'
|
||||||
|
collection :requested_languages, as: 'requestedLanguages'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class TextEntry
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :text, as: 'text'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,124 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/core/base_service'
|
||||||
|
require 'google/apis/core/json_representation'
|
||||||
|
require 'google/apis/core/hashable'
|
||||||
|
require 'google/apis/errors'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
module CommentanalyzerV1alpha1
|
||||||
|
# Perspective Comment Analyzer API
|
||||||
|
#
|
||||||
|
# The Perspective Comment Analyzer API provides information about the potential
|
||||||
|
# impact of a comment on a conversation (e.g. it can provide a score for the "
|
||||||
|
# toxicity" of a comment). Users can leverage the "SuggestCommentScore" method
|
||||||
|
# to submit corrections to improve Perspective over time. Users can set the "
|
||||||
|
# doNotStore" flag to ensure that all submitted comments are automatically
|
||||||
|
# deleted after scores are returned.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/commentanalyzer_v1alpha1'
|
||||||
|
#
|
||||||
|
# Commentanalyzer = Google::Apis::CommentanalyzerV1alpha1 # Alias the module
|
||||||
|
# service = Commentanalyzer::CommentAnalyzerService.new
|
||||||
|
#
|
||||||
|
# @see https://conversationai.github.io/
|
||||||
|
class CommentAnalyzerService < Google::Apis::Core::BaseService
|
||||||
|
# @return [String]
|
||||||
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||||
|
attr_accessor :key
|
||||||
|
|
||||||
|
# @return [String]
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
attr_accessor :quota_user
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
super('https://commentanalyzer.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Analyzes the provided text and returns scores for requested attributes.
|
||||||
|
# @param [Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentRequest] analyze_comment_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::CommentanalyzerV1alpha1::AnalyzeCommentResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentResponse]
|
||||||
|
#
|
||||||
|
# @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 analyze_comment(analyze_comment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/comments:analyze', options)
|
||||||
|
command.request_representation = Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentRequest::Representation
|
||||||
|
command.request_object = analyze_comment_request_object
|
||||||
|
command.response_representation = Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Suggest comment scores as training data.
|
||||||
|
# @param [Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreRequest] suggest_comment_score_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::CommentanalyzerV1alpha1::SuggestCommentScoreResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse]
|
||||||
|
#
|
||||||
|
# @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 suggestscore_comment(suggest_comment_score_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/comments:suggestscore', options)
|
||||||
|
command.request_representation = Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreRequest::Representation
|
||||||
|
command.request_object = suggest_comment_score_request_object
|
||||||
|
command.response_representation = Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def apply_command_defaults(command)
|
||||||
|
command.query['key'] = key unless key.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeAlpha
|
module ComputeAlpha
|
||||||
VERSION = 'Alpha'
|
VERSION = 'Alpha'
|
||||||
REVISION = '20190308'
|
REVISION = '20190403'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1374,6 +1374,13 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :replica_zones
|
attr_accessor :replica_zones
|
||||||
|
|
||||||
|
# Resource policies applied to this disk for automatic snapshot creations.
|
||||||
|
# Specified using the full or partial URL. For instance template, specify only
|
||||||
|
# the resource policy name.
|
||||||
|
# Corresponds to the JSON property `resourcePolicies`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :resource_policies
|
||||||
|
|
||||||
# The source image to create this disk. When creating a new instance, one of
|
# The source image to create this disk. When creating a new instance, one of
|
||||||
# initializeParams.sourceImage or disks.source is required except for local SSD.
|
# initializeParams.sourceImage or disks.source is required except for local SSD.
|
||||||
# To create a disk with one of the public operating system images, specify the
|
# To create a disk with one of the public operating system images, specify the
|
||||||
|
@ -1428,6 +1435,7 @@ module Google
|
||||||
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@replica_zones = args[:replica_zones] if args.key?(:replica_zones)
|
@replica_zones = args[:replica_zones] if args.key?(:replica_zones)
|
||||||
|
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
||||||
@source_image = args[:source_image] if args.key?(:source_image)
|
@source_image = args[:source_image] if args.key?(:source_image)
|
||||||
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
||||||
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
|
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
|
||||||
|
@ -4706,7 +4714,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :replacement
|
attr_accessor :replacement
|
||||||
|
|
||||||
# The deprecation state of this resource. This can be ACTIVE DEPRECATED,
|
# The deprecation state of this resource. This can be ACTIVE, DEPRECATED,
|
||||||
# OBSOLETE, or DELETED. Operations which communicate the end of life date for an
|
# OBSOLETE, or DELETED. Operations which communicate the end of life date for an
|
||||||
# image, can use ACTIVE. Operations which create a new resource using a
|
# image, can use ACTIVE. Operations which create a new resource using a
|
||||||
# DEPRECATED resource will return successfully, but with a warning indicating
|
# DEPRECATED resource will return successfully, but with a warning indicating
|
||||||
|
@ -4869,6 +4877,24 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :size_gb
|
attr_accessor :size_gb
|
||||||
|
|
||||||
|
# The source disk used to create this disk. You can provide this as a partial or
|
||||||
|
# full URL to the resource. For example, the following are valid values:
|
||||||
|
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
|
||||||
|
# - projects/project/zones/zone/disks/disk
|
||||||
|
# - zones/zone/disks/disk
|
||||||
|
# Corresponds to the JSON property `sourceDisk`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :source_disk
|
||||||
|
|
||||||
|
# [Output Only] The unique ID of the disk used to create this disk. This value
|
||||||
|
# identifies the exact disk that was used to create this persistent disk. For
|
||||||
|
# example, if you created the persistent disk from a disk that was later deleted
|
||||||
|
# and recreated under the same name, the source disk ID would identify the exact
|
||||||
|
# version of the disk that was used.
|
||||||
|
# Corresponds to the JSON property `sourceDiskId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :source_disk_id
|
||||||
|
|
||||||
# The source image used to create this disk. If the source image is deleted,
|
# The source image used to create this disk. If the source image is deleted,
|
||||||
# this field will not be set.
|
# this field will not be set.
|
||||||
# To create a disk with one of the public operating system images, specify the
|
# To create a disk with one of the public operating system images, specify the
|
||||||
|
@ -4984,6 +5010,8 @@ module Google
|
||||||
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
@size_gb = args[:size_gb] if args.key?(:size_gb)
|
@size_gb = args[:size_gb] if args.key?(:size_gb)
|
||||||
|
@source_disk = args[:source_disk] if args.key?(:source_disk)
|
||||||
|
@source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
|
||||||
@source_image = args[:source_image] if args.key?(:source_image)
|
@source_image = args[:source_image] if args.key?(:source_image)
|
||||||
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
||||||
@source_image_id = args[:source_image_id] if args.key?(:source_image_id)
|
@source_image_id = args[:source_image_id] if args.key?(:source_image_id)
|
||||||
|
@ -6877,7 +6905,8 @@ module Google
|
||||||
# [Output Only] Absolute value of VM instances calculated based on the specific
|
# [Output Only] Absolute value of VM instances calculated based on the specific
|
||||||
# mode.
|
# mode.
|
||||||
#
|
#
|
||||||
# - If the value is fixed, then the caculated value is equal to the fixed value.
|
# - If the value is fixed, then the calculated value is equal to the fixed value.
|
||||||
|
#
|
||||||
# - If the value is a percent, then the calculated value is percent/100 *
|
# - If the value is a percent, then the calculated value is percent/100 *
|
||||||
# targetSize. For example, the calculated value of a 80% of a managed instance
|
# targetSize. For example, the calculated value of a 80% of a managed instance
|
||||||
# group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
|
# group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
|
||||||
|
@ -7567,6 +7596,44 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of network endpoints to be attached.
|
||||||
|
# Corresponds to the JSON property `networkEndpoints`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::NetworkEndpoint>]
|
||||||
|
attr_accessor :network_endpoints
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class GlobalNetworkEndpointGroupsDetachEndpointsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The list of network endpoints to be detached.
|
||||||
|
# Corresponds to the JSON property `networkEndpoints`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::NetworkEndpoint>]
|
||||||
|
attr_accessor :network_endpoints
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class GlobalSetLabelsRequest
|
class GlobalSetLabelsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -8134,9 +8201,9 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :timeout_sec
|
attr_accessor :timeout_sec
|
||||||
|
|
||||||
# Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not
|
# Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
||||||
# specified, the default is TCP. Exactly one of the protocol-specific health
|
# If not specified, the default is TCP. Exactly one of the protocol-specific
|
||||||
# check field must be specified, which must match type field.
|
# health check field must be specified, which must match type field.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -11265,8 +11332,11 @@ module Google
|
||||||
# @return [Array<Google::Apis::ComputeAlpha::NamedPort>]
|
# @return [Array<Google::Apis::ComputeAlpha::NamedPort>]
|
||||||
attr_accessor :named_ports
|
attr_accessor :named_ports
|
||||||
|
|
||||||
# [Output Only] The list of instance actions and the number of instances in this
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# managed instance group that are pending for each of those actions.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The list
|
||||||
|
# of instance actions and the number of instances in this managed instance group
|
||||||
|
# that are pending for each of those actions.
|
||||||
# Corresponds to the JSON property `pendingActions`
|
# Corresponds to the JSON property `pendingActions`
|
||||||
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerPendingActionsSummary]
|
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerPendingActionsSummary]
|
||||||
attr_accessor :pending_actions
|
attr_accessor :pending_actions
|
||||||
|
@ -11327,8 +11397,8 @@ module Google
|
||||||
|
|
||||||
# Specifies the instance templates used by this managed instance group to create
|
# Specifies the instance templates used by this managed instance group to create
|
||||||
# instances.
|
# instances.
|
||||||
# Each version is defined by an instanceTemplate. Every template can appear at
|
# Each version is defined by an instanceTemplate and a name. Every version can
|
||||||
# most once per instance group. This field overrides the top-level
|
# appear at most once per instance group. This field overrides the top-level
|
||||||
# instanceTemplate field. Read more about the relationships between these fields.
|
# instanceTemplate field. Read more about the relationships between these fields.
|
||||||
# Exactly one version must leave the targetSize field unset. That version will
|
# Exactly one version must leave the targetSize field unset. That version will
|
||||||
# be applied to all remaining instances. For more information, read about canary
|
# be applied to all remaining instances. For more information, read about canary
|
||||||
|
@ -11742,26 +11812,34 @@ module Google
|
||||||
class InstanceGroupManagerPendingActionsSummary
|
class InstanceGroupManagerPendingActionsSummary
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be created.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be created.
|
||||||
# Corresponds to the JSON property `creating`
|
# Corresponds to the JSON property `creating`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :creating
|
attr_accessor :creating
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be deleted.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be deleted.
|
||||||
# Corresponds to the JSON property `deleting`
|
# Corresponds to the JSON property `deleting`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :deleting
|
attr_accessor :deleting
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be recreated.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be recreated.
|
||||||
# Corresponds to the JSON property `recreating`
|
# Corresponds to the JSON property `recreating`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :recreating
|
attr_accessor :recreating
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be restarted.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be restarted.
|
||||||
# Corresponds to the JSON property `restarting`
|
# Corresponds to the JSON property `restarting`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :restarting
|
attr_accessor :restarting
|
||||||
|
@ -11899,7 +11977,9 @@ module Google
|
||||||
class InstanceGroupManagerVersion
|
class InstanceGroupManagerVersion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
#
|
# The URL of the instance template that is specified for this managed instance
|
||||||
|
# group. The group uses this template to create new instances in the managed
|
||||||
|
# instance group until the `targetSize` for this version is reached.
|
||||||
# Corresponds to the JSON property `instanceTemplate`
|
# Corresponds to the JSON property `instanceTemplate`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :instance_template
|
attr_accessor :instance_template
|
||||||
|
@ -13429,6 +13509,57 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class InstancesGetEffectiveFirewallsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Effective firewalls on the instance.
|
||||||
|
# Corresponds to the JSON property `firewalls`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::Firewall>]
|
||||||
|
attr_accessor :firewalls
|
||||||
|
|
||||||
|
# Effective firewalls from organization policies.
|
||||||
|
# Corresponds to the JSON property `organizationFirewalls`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy>]
|
||||||
|
attr_accessor :organization_firewalls
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@firewalls = args[:firewalls] if args.key?(:firewalls)
|
||||||
|
@organization_firewalls = args[:organization_firewalls] if args.key?(:organization_firewalls)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A pruned SecurityPolicy containing ID and any applicable firewall rules.
|
||||||
|
class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The unique identifier for the security policy. This identifier is defined by
|
||||||
|
# the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# The rules that apply to the network.
|
||||||
|
# Corresponds to the JSON property `rules`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRule>]
|
||||||
|
attr_accessor :rules
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@id = args[:id] if args.key?(:id)
|
||||||
|
@rules = args[:rules] if args.key?(:rules)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class InstancesRemoveResourcePoliciesRequest
|
class InstancesRemoveResourcePoliciesRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -15962,6 +16093,39 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class LocalDisk
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies the number of such disks.
|
||||||
|
# Corresponds to the JSON property `diskCount`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :disk_count
|
||||||
|
|
||||||
|
# Specifies the size of the disk in base-2 GB.
|
||||||
|
# Corresponds to the JSON property `diskSizeGb`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :disk_size_gb
|
||||||
|
|
||||||
|
# Specifies the desired disk type on the node. This disk type must be a local
|
||||||
|
# storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be
|
||||||
|
# the name of the disk type and not its URL.
|
||||||
|
# Corresponds to the JSON property `diskType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :disk_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@disk_count = args[:disk_count] if args.key?(:disk_count)
|
||||||
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
||||||
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Specifies what kind of log the caller must write
|
# Specifies what kind of log the caller must write
|
||||||
class LogConfig
|
class LogConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -17368,6 +17532,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :load_balancer_vm_encryption
|
attr_accessor :load_balancer_vm_encryption
|
||||||
|
|
||||||
|
# The multicast mode for this network. If set to ZONAL, multicast is allowed
|
||||||
|
# within a zone. If set to DISABLED, multicast is disabled for this network. The
|
||||||
|
# default is DISABLED.
|
||||||
|
# Corresponds to the JSON property `multicastMode`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :multicast_mode
|
||||||
|
|
||||||
# Name of the resource. Provided by the client when the resource is created. The
|
# Name of the resource. Provided by the client when the resource is created. The
|
||||||
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
||||||
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
|
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
|
||||||
|
@ -17421,6 +17592,7 @@ module Google
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@load_balancer_vm_encryption = args[:load_balancer_vm_encryption] if args.key?(:load_balancer_vm_encryption)
|
@load_balancer_vm_encryption = args[:load_balancer_vm_encryption] if args.key?(:load_balancer_vm_encryption)
|
||||||
|
@multicast_mode = args[:multicast_mode] if args.key?(:multicast_mode)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@peerings = args[:peerings] if args.key?(:peerings)
|
@peerings = args[:peerings] if args.key?(:peerings)
|
||||||
@routing_config = args[:routing_config] if args.key?(:routing_config)
|
@routing_config = args[:routing_config] if args.key?(:routing_config)
|
||||||
|
@ -17924,6 +18096,13 @@ module Google
|
||||||
class NetworkEndpointGroupsListEndpointsRequest
|
class NetworkEndpointGroupsListEndpointsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Optional list of endpoints to query. This is a more efficient but also limited
|
||||||
|
# version of filter parameter. Endpoints in the filter must have ip_address and
|
||||||
|
# port fields populated, other fields are not supported.
|
||||||
|
# Corresponds to the JSON property `endpointFilters`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter>]
|
||||||
|
attr_accessor :endpoint_filters
|
||||||
|
|
||||||
# Optional query parameter for showing the health status of each network
|
# Optional query parameter for showing the health status of each network
|
||||||
# endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter,
|
# endpoint. Valid options are SKIP or SHOW. If you don't specifiy this parameter,
|
||||||
# the health status of network endpoints will not be provided.
|
# the health status of network endpoints will not be provided.
|
||||||
|
@ -17937,10 +18116,30 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@endpoint_filters = args[:endpoint_filters] if args.key?(:endpoint_filters)
|
||||||
@health_status = args[:health_status] if args.key?(:health_status)
|
@health_status = args[:health_status] if args.key?(:health_status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The network endpoint.
|
||||||
|
# Corresponds to the JSON property `networkEndpoint`
|
||||||
|
# @return [Google::Apis::ComputeAlpha::NetworkEndpoint]
|
||||||
|
attr_accessor :network_endpoint
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@network_endpoint = args[:network_endpoint] if args.key?(:network_endpoint)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class NetworkEndpointGroupsListNetworkEndpoints
|
class NetworkEndpointGroupsListNetworkEndpoints
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -18197,6 +18396,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :fingerprint
|
attr_accessor :fingerprint
|
||||||
|
|
||||||
|
# [Output Only] An IPv6 internal network address for this network interface.
|
||||||
|
# Corresponds to the JSON property `ipv6Address`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ipv6_address
|
||||||
|
|
||||||
# [Output Only] Type of the resource. Always compute#networkInterface for
|
# [Output Only] Type of the resource. Always compute#networkInterface for
|
||||||
# network interfaces.
|
# network interfaces.
|
||||||
# Corresponds to the JSON property `kind`
|
# Corresponds to the JSON property `kind`
|
||||||
|
@ -18254,6 +18458,7 @@ module Google
|
||||||
@access_configs = args[:access_configs] if args.key?(:access_configs)
|
@access_configs = args[:access_configs] if args.key?(:access_configs)
|
||||||
@alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges)
|
@alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges)
|
||||||
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||||
|
@ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@network = args[:network] if args.key?(:network)
|
@network = args[:network] if args.key?(:network)
|
||||||
|
@ -18576,6 +18781,57 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class NetworksGetEffectiveFirewallsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Effective firewalls on the network.
|
||||||
|
# Corresponds to the JSON property `firewalls`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::Firewall>]
|
||||||
|
attr_accessor :firewalls
|
||||||
|
|
||||||
|
# Effective firewalls from organization policies.
|
||||||
|
# Corresponds to the JSON property `organizationFirewalls`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy>]
|
||||||
|
attr_accessor :organization_firewalls
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@firewalls = args[:firewalls] if args.key?(:firewalls)
|
||||||
|
@organization_firewalls = args[:organization_firewalls] if args.key?(:organization_firewalls)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A pruned SecurityPolicy containing ID and any applicable firewall rules.
|
||||||
|
class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output Only] The unique identifier for the security policy. This identifier
|
||||||
|
# is defined by the server.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# The rules that apply to the network.
|
||||||
|
# Corresponds to the JSON property `rules`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRule>]
|
||||||
|
attr_accessor :rules
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@id = args[:id] if args.key?(:id)
|
||||||
|
@rules = args[:rules] if args.key?(:rules)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class NetworksRemovePeeringRequest
|
class NetworksRemovePeeringRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -18616,7 +18872,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A NodeGroup resource.
|
# A NodeGroup resource. To create a node group, you must first create a node
|
||||||
|
# templates. To learn more about node groups and sole-tenant nodes, read the
|
||||||
|
# Sole-tenant nodes documentation. (== resource_for beta.nodeGroups ==) (==
|
||||||
|
# resource_for v1.nodeGroups ==)
|
||||||
class NodeGroup
|
class NodeGroup
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -18648,6 +18907,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `managedHoldback`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :managed_holdback
|
||||||
|
|
||||||
# The name of the resource, provided by the client when initially creating the
|
# The name of the resource, provided by the client when initially creating the
|
||||||
# resource. The resource name must be 1-63 characters long, and comply with
|
# resource. The resource name must be 1-63 characters long, and comply with
|
||||||
# RFC1035. Specifically, the name must be 1-63 characters long and match the
|
# RFC1035. Specifically, the name must be 1-63 characters long and match the
|
||||||
|
@ -18701,6 +18965,7 @@ module Google
|
||||||
@description = args[:description] if args.key?(:description)
|
@description = args[:description] if args.key?(:description)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@managed_holdback = args[:managed_holdback] if args.key?(:managed_holdback)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@node_template = args[:node_template] if args.key?(:node_template)
|
@node_template = args[:node_template] if args.key?(:node_template)
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
|
@ -18976,6 +19241,11 @@ module Google
|
||||||
class NodeGroupNode
|
class NodeGroupNode
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Local disk configurations.
|
||||||
|
# Corresponds to the JSON property `disks`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::LocalDisk>]
|
||||||
|
attr_accessor :disks
|
||||||
|
|
||||||
# Instances scheduled on this node.
|
# Instances scheduled on this node.
|
||||||
# Corresponds to the JSON property `instances`
|
# Corresponds to the JSON property `instances`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
|
@ -19007,6 +19277,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@disks = args[:disks] if args.key?(:disks)
|
||||||
@instances = args[:instances] if args.key?(:instances)
|
@instances = args[:instances] if args.key?(:instances)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@node_type = args[:node_type] if args.key?(:node_type)
|
@node_type = args[:node_type] if args.key?(:node_type)
|
||||||
|
@ -19301,7 +19572,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Node Template resource.
|
# A Node Template resource. To learn more about node templates and sole-tenant
|
||||||
|
# nodes, read the Sole-tenant nodes documentation. (== resource_for beta.
|
||||||
|
# nodeTemplates ==) (== resource_for v1.nodeTemplates ==)
|
||||||
class NodeTemplate
|
class NodeTemplate
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -19316,6 +19589,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :description
|
attr_accessor :description
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `disks`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::LocalDisk>]
|
||||||
|
attr_accessor :disks
|
||||||
|
|
||||||
# [Output Only] The unique identifier for the resource. This identifier is
|
# [Output Only] The unique identifier for the resource. This identifier is
|
||||||
# defined by the server.
|
# defined by the server.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
|
@ -19397,6 +19675,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||||
@description = args[:description] if args.key?(:description)
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@disks = args[:disks] if args.key?(:disks)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@ -24248,6 +24527,11 @@ module Google
|
||||||
# @return [Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy]
|
# @return [Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy]
|
||||||
attr_accessor :snapshot_schedule_policy
|
attr_accessor :snapshot_schedule_policy
|
||||||
|
|
||||||
|
# [Output Only] The status of resource policy creation.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
# Resource policy applicable to VMs for infrastructure maintenance.
|
# Resource policy applicable to VMs for infrastructure maintenance.
|
||||||
# Corresponds to the JSON property `vmMaintenancePolicy`
|
# Corresponds to the JSON property `vmMaintenancePolicy`
|
||||||
# @return [Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy]
|
# @return [Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy]
|
||||||
|
@ -24269,6 +24553,7 @@ module Google
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
|
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
|
||||||
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
@vm_maintenance_policy = args[:vm_maintenance_policy] if args.key?(:vm_maintenance_policy)
|
@vm_maintenance_policy = args[:vm_maintenance_policy] if args.key?(:vm_maintenance_policy)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -24927,6 +25212,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_hop_instance
|
attr_accessor :next_hop_instance
|
||||||
|
|
||||||
|
# [Output Only] The URL to an InterconnectAttachment which is the next hop for
|
||||||
|
# the route. This field will only be populated for the dynamic routes generated
|
||||||
|
# by Cloud Router with a linked interconnectAttachment.
|
||||||
|
# Corresponds to the JSON property `nextHopInterconnectAttachment`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_hop_interconnect_attachment
|
||||||
|
|
||||||
# The network IP address of an instance that should handle matching packets.
|
# The network IP address of an instance that should handle matching packets.
|
||||||
# Only IPv4 is supported.
|
# Only IPv4 is supported.
|
||||||
# Corresponds to the JSON property `nextHopIp`
|
# Corresponds to the JSON property `nextHopIp`
|
||||||
|
@ -24994,6 +25286,7 @@ module Google
|
||||||
@next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
|
@next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
|
||||||
@next_hop_ilb = args[:next_hop_ilb] if args.key?(:next_hop_ilb)
|
@next_hop_ilb = args[:next_hop_ilb] if args.key?(:next_hop_ilb)
|
||||||
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
|
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
|
||||||
|
@next_hop_interconnect_attachment = args[:next_hop_interconnect_attachment] if args.key?(:next_hop_interconnect_attachment)
|
||||||
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
|
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
|
||||||
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
|
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
|
||||||
@next_hop_peering = args[:next_hop_peering] if args.key?(:next_hop_peering)
|
@next_hop_peering = args[:next_hop_peering] if args.key?(:next_hop_peering)
|
||||||
|
@ -25623,11 +25916,11 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :min_transmit_interval
|
attr_accessor :min_transmit_interval
|
||||||
|
|
||||||
# The BFD session initiation mode for this BGP peer. If set to ACTIVE, the Cloud
|
# The BFD session initialization mode for this BGP peer. If set to ACTIVE, the
|
||||||
# Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the
|
# Cloud Router will initiate the BFD session for this BGP peer. If set to
|
||||||
# Cloud Router will wait for the peer router to initiate the BFD session for
|
# PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD
|
||||||
# this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The
|
# session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP
|
||||||
# default is PASSIVE.
|
# peer. The default is PASSIVE.
|
||||||
# Corresponds to the JSON property `mode`
|
# Corresponds to the JSON property `mode`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :mode
|
attr_accessor :mode
|
||||||
|
@ -26635,6 +26928,14 @@ module Google
|
||||||
attr_accessor :automatic_restart
|
attr_accessor :automatic_restart
|
||||||
alias_method :automatic_restart?, :automatic_restart
|
alias_method :automatic_restart?, :automatic_restart
|
||||||
|
|
||||||
|
# Defines whether the instance is tolerant of higher cpu latency. This can only
|
||||||
|
# be set during instance creation, or when the instance is not currently running.
|
||||||
|
# It must not be set if the preemptible option is also set.
|
||||||
|
# Corresponds to the JSON property `latencyTolerant`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :latency_tolerant
|
||||||
|
alias_method :latency_tolerant?, :latency_tolerant
|
||||||
|
|
||||||
# The minimum number of virtual CPUs this instance will consume when running on
|
# The minimum number of virtual CPUs this instance will consume when running on
|
||||||
# a sole-tenant node.
|
# a sole-tenant node.
|
||||||
# Corresponds to the JSON property `minNodeCpus`
|
# Corresponds to the JSON property `minNodeCpus`
|
||||||
|
@ -26669,6 +26970,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
|
@automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
|
||||||
|
@latency_tolerant = args[:latency_tolerant] if args.key?(:latency_tolerant)
|
||||||
@min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
|
@min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
|
||||||
@node_affinities = args[:node_affinities] if args.key?(:node_affinities)
|
@node_affinities = args[:node_affinities] if args.key?(:node_affinities)
|
||||||
@on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
|
@on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
|
||||||
|
@ -35483,6 +35785,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==)
|
# A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==)
|
||||||
|
# Next ID: 17
|
||||||
class Zone
|
class Zone
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -976,6 +976,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GlobalNetworkEndpointGroupsDetachEndpointsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GlobalSetLabelsRequest
|
class GlobalSetLabelsRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1714,6 +1726,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InstancesGetEffectiveFirewallsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class InstancesRemoveResourcePoliciesRequest
|
class InstancesRemoveResourcePoliciesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2062,6 +2086,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class LocalDisk
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class LogConfig
|
class LogConfig
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2344,6 +2374,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkEndpointGroupsListNetworkEndpoints
|
class NetworkEndpointGroupsListNetworkEndpoints
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2428,6 +2464,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworksGetEffectiveFirewallsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class NetworksRemovePeeringRequest
|
class NetworksRemovePeeringRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -5279,6 +5327,7 @@ module Google
|
||||||
|
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
collection :replica_zones, as: 'replicaZones'
|
collection :replica_zones, as: 'replicaZones'
|
||||||
|
collection :resource_policies, as: 'resourcePolicies'
|
||||||
property :source_image, as: 'sourceImage'
|
property :source_image, as: 'sourceImage'
|
||||||
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
||||||
|
|
||||||
|
@ -6116,6 +6165,8 @@ module Google
|
||||||
collection :resource_policies, as: 'resourcePolicies'
|
collection :resource_policies, as: 'resourcePolicies'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :size_gb, :numeric_string => true, as: 'sizeGb'
|
property :size_gb, :numeric_string => true, as: 'sizeGb'
|
||||||
|
property :source_disk, as: 'sourceDisk'
|
||||||
|
property :source_disk_id, as: 'sourceDiskId'
|
||||||
property :source_image, as: 'sourceImage'
|
property :source_image, as: 'sourceImage'
|
||||||
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
||||||
|
|
||||||
|
@ -6751,6 +6802,22 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GlobalNetworkEndpointGroupsAttachEndpointsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::ComputeAlpha::NetworkEndpoint, decorator: Google::Apis::ComputeAlpha::NetworkEndpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GlobalNetworkEndpointGroupsDetachEndpointsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::ComputeAlpha::NetworkEndpoint, decorator: Google::Apis::ComputeAlpha::NetworkEndpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GlobalSetLabelsRequest
|
class GlobalSetLabelsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -8207,6 +8274,25 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InstancesGetEffectiveFirewallsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :firewalls, as: 'firewalls', class: Google::Apis::ComputeAlpha::Firewall, decorator: Google::Apis::ComputeAlpha::Firewall::Representation
|
||||||
|
|
||||||
|
collection :organization_firewalls, as: 'organizationFirewalls', class: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy, decorator: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class InstancesRemoveResourcePoliciesRequest
|
class InstancesRemoveResourcePoliciesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -8848,6 +8934,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class LocalDisk
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :disk_count, as: 'diskCount'
|
||||||
|
property :disk_size_gb, as: 'diskSizeGb'
|
||||||
|
property :disk_type, as: 'diskType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class LogConfig
|
class LogConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -9214,6 +9309,7 @@ module Google
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :load_balancer_vm_encryption, as: 'loadBalancerVmEncryption'
|
property :load_balancer_vm_encryption, as: 'loadBalancerVmEncryption'
|
||||||
|
property :multicast_mode, as: 'multicastMode'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
collection :peerings, as: 'peerings', class: Google::Apis::ComputeAlpha::NetworkPeering, decorator: Google::Apis::ComputeAlpha::NetworkPeering::Representation
|
collection :peerings, as: 'peerings', class: Google::Apis::ComputeAlpha::NetworkPeering, decorator: Google::Apis::ComputeAlpha::NetworkPeering::Representation
|
||||||
|
|
||||||
|
@ -9352,10 +9448,20 @@ module Google
|
||||||
class NetworkEndpointGroupsListEndpointsRequest
|
class NetworkEndpointGroupsListEndpointsRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :endpoint_filters, as: 'endpointFilters', class: Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter, decorator: Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter::Representation
|
||||||
|
|
||||||
property :health_status, as: 'healthStatus'
|
property :health_status, as: 'healthStatus'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsListEndpointsRequestNetworkEndpointFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :network_endpoint, as: 'networkEndpoint', class: Google::Apis::ComputeAlpha::NetworkEndpoint, decorator: Google::Apis::ComputeAlpha::NetworkEndpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkEndpointGroupsListNetworkEndpoints
|
class NetworkEndpointGroupsListNetworkEndpoints
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -9433,6 +9539,7 @@ module Google
|
||||||
collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeAlpha::AliasIpRange, decorator: Google::Apis::ComputeAlpha::AliasIpRange::Representation
|
collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeAlpha::AliasIpRange, decorator: Google::Apis::ComputeAlpha::AliasIpRange::Representation
|
||||||
|
|
||||||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||||
|
property :ipv6_address, as: 'ipv6Address'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :network, as: 'network'
|
property :network, as: 'network'
|
||||||
|
@ -9510,6 +9617,25 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworksGetEffectiveFirewallsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :firewalls, as: 'firewalls', class: Google::Apis::ComputeAlpha::Firewall, decorator: Google::Apis::ComputeAlpha::Firewall::Representation
|
||||||
|
|
||||||
|
collection :organization_firewalls, as: 'organizationFirewalls', class: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy, decorator: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class NetworksRemovePeeringRequest
|
class NetworksRemovePeeringRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -9534,6 +9660,7 @@ module Google
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :managed_holdback, as: 'managedHoldback'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :node_template, as: 'nodeTemplate'
|
property :node_template, as: 'nodeTemplate'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
|
@ -9619,6 +9746,8 @@ module Google
|
||||||
class NodeGroupNode
|
class NodeGroupNode
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::LocalDisk, decorator: Google::Apis::ComputeAlpha::LocalDisk::Representation
|
||||||
|
|
||||||
collection :instances, as: 'instances'
|
collection :instances, as: 'instances'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :node_type, as: 'nodeType'
|
property :node_type, as: 'nodeType'
|
||||||
|
@ -9722,6 +9851,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :creation_timestamp, as: 'creationTimestamp'
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
|
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::LocalDisk, decorator: Google::Apis::ComputeAlpha::LocalDisk::Representation
|
||||||
|
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
@ -11044,6 +11175,7 @@ module Google
|
||||||
property :self_link_with_id, as: 'selfLinkWithId'
|
property :self_link_with_id, as: 'selfLinkWithId'
|
||||||
property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy::Representation
|
property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicySnapshotSchedulePolicy::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status'
|
||||||
property :vm_maintenance_policy, as: 'vmMaintenancePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy::Representation
|
property :vm_maintenance_policy, as: 'vmMaintenancePolicy', class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy, decorator: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -11230,6 +11362,7 @@ module Google
|
||||||
property :next_hop_gateway, as: 'nextHopGateway'
|
property :next_hop_gateway, as: 'nextHopGateway'
|
||||||
property :next_hop_ilb, as: 'nextHopIlb'
|
property :next_hop_ilb, as: 'nextHopIlb'
|
||||||
property :next_hop_instance, as: 'nextHopInstance'
|
property :next_hop_instance, as: 'nextHopInstance'
|
||||||
|
property :next_hop_interconnect_attachment, as: 'nextHopInterconnectAttachment'
|
||||||
property :next_hop_ip, as: 'nextHopIp'
|
property :next_hop_ip, as: 'nextHopIp'
|
||||||
property :next_hop_network, as: 'nextHopNetwork'
|
property :next_hop_network, as: 'nextHopNetwork'
|
||||||
property :next_hop_peering, as: 'nextHopPeering'
|
property :next_hop_peering, as: 'nextHopPeering'
|
||||||
|
@ -11628,6 +11761,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :automatic_restart, as: 'automaticRestart'
|
property :automatic_restart, as: 'automaticRestart'
|
||||||
|
property :latency_tolerant, as: 'latencyTolerant'
|
||||||
property :min_node_cpus, as: 'minNodeCpus'
|
property :min_node_cpus, as: 'minNodeCpus'
|
||||||
collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeAlpha::SchedulingNodeAffinity, decorator: Google::Apis::ComputeAlpha::SchedulingNodeAffinity::Representation
|
collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeAlpha::SchedulingNodeAffinity, decorator: Google::Apis::ComputeAlpha::SchedulingNodeAffinity::Representation
|
||||||
|
|
||||||
|
|
|
@ -4897,6 +4897,393 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Attach a network endpoint to the specified network endpoint group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group where you are attaching network
|
||||||
|
# endpoints to. It should comply with RFC1035.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsAttachEndpointsRequest] global_network_endpoint_groups_attach_endpoints_request_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def attach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsAttachEndpointsRequest::Representation
|
||||||
|
command.request_object = global_network_endpoint_groups_attach_endpoints_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes the specified network endpoint group.Note that the NEG cannot be
|
||||||
|
# deleted if there are backend services referencing it.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group to delete. It should comply with
|
||||||
|
# RFC1035.
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def delete_global_network_endpoint_group(project, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Detach the network endpoint from the specified network endpoint group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group where you are removing network
|
||||||
|
# endpoints. It should comply with RFC1035.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsDetachEndpointsRequest] global_network_endpoint_groups_detach_endpoints_request_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def detach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsDetachEndpointsRequest::Representation
|
||||||
|
command.request_object = global_network_endpoint_groups_detach_endpoints_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns the specified network endpoint group. Gets a list of available network
|
||||||
|
# endpoint groups by making a list() request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group. It should comply with RFC1035.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_global_network_endpoint_group(project, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a network endpoint group in the specified project using the parameters
|
||||||
|
# that are included in the request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def insert_global_network_endpoint_group(project, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/networkEndpointGroups', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
|
||||||
|
command.request_object = network_endpoint_group_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves the list of network endpoint groups that are located in the
|
||||||
|
# specified project.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter expression that filters resources listed in the response. The
|
||||||
|
# expression must specify the field name, a comparison operator, and the value
|
||||||
|
# that you want to use for filtering. The value must be a string, a number, or a
|
||||||
|
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||||
|
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||||
|
# instances named example-instance by specifying name != example-instance.
|
||||||
|
# You can also filter nested fields. For example, you could specify scheduling.
|
||||||
|
# automaticRestart = false to include instances only if they are not scheduled
|
||||||
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
|
# on resource labels.
|
||||||
|
# To filter on multiple expressions, provide each separate expression within
|
||||||
|
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||||
|
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||||
|
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||||
|
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||||
|
# automaticRestart = true).
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# The maximum number of results per page that should be returned. If the number
|
||||||
|
# of available results is larger than maxResults, Compute Engine returns a
|
||||||
|
# nextPageToken that can be used to get the next page of results in subsequent
|
||||||
|
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||||
|
# a previous list request to get the next page of results.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_global_network_endpoint_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/networkEndpointGroups', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists the network endpoints in the specified network endpoint group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group from which you want to generate a list
|
||||||
|
# of included network endpoints. It should comply with RFC1035.
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter expression that filters resources listed in the response. The
|
||||||
|
# expression must specify the field name, a comparison operator, and the value
|
||||||
|
# that you want to use for filtering. The value must be a string, a number, or a
|
||||||
|
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||||
|
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||||
|
# instances named example-instance by specifying name != example-instance.
|
||||||
|
# You can also filter nested fields. For example, you could specify scheduling.
|
||||||
|
# automaticRestart = false to include instances only if they are not scheduled
|
||||||
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
|
# on resource labels.
|
||||||
|
# To filter on multiple expressions, provide each separate expression within
|
||||||
|
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||||
|
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||||
|
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||||
|
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||||
|
# automaticRestart = true).
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# The maximum number of results per page that should be returned. If the number
|
||||||
|
# of available results is larger than maxResults, Compute Engine returns a
|
||||||
|
# nextPageToken that can be used to get the next page of results in subsequent
|
||||||
|
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||||
|
# a previous list request to get the next page of results.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def list_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Retrieves an aggregated list of all operations.
|
# Retrieves an aggregated list of all operations.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
|
@ -9648,6 +10035,48 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns effective firewalls applied to an interface of the instance.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone for this request.
|
||||||
|
# @param [String] instance
|
||||||
|
# Name of the instance scoping this request.
|
||||||
|
# @param [String] network_interface
|
||||||
|
# The name of the network interface to get the effective firewalls.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponse]
|
||||||
|
#
|
||||||
|
# @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_instance_effective_firewalls(project, zone, instance, network_interface, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponse
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['instance'] = instance unless instance.nil?
|
||||||
|
command.query['networkInterface'] = network_interface unless network_interface.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Returns the specified guest attributes entry.
|
# Returns the specified guest attributes entry.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
|
@ -14319,6 +14748,42 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns the effective firewalls on a given network.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] network
|
||||||
|
# Name of the network for this request.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponse]
|
||||||
|
#
|
||||||
|
# @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_network_effective_firewalls(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/global/networks/{network}/getEffectiveFirewalls', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponse
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['network'] = network unless network.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Creates a network in the specified project using the data included in the
|
# Creates a network in the specified project using the data included in the
|
||||||
# request.
|
# request.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeBeta
|
module ComputeBeta
|
||||||
VERSION = 'Beta'
|
VERSION = 'Beta'
|
||||||
REVISION = '20190308'
|
REVISION = '20190403'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1319,6 +1319,13 @@ module Google
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# Resource policies applied to this disk for automatic snapshot creations.
|
||||||
|
# Specified using the full or partial URL. For instance template, specify only
|
||||||
|
# the resource policy name.
|
||||||
|
# Corresponds to the JSON property `resourcePolicies`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :resource_policies
|
||||||
|
|
||||||
# The source image to create this disk. When creating a new instance, one of
|
# The source image to create this disk. When creating a new instance, one of
|
||||||
# initializeParams.sourceImage or disks.source is required except for local SSD.
|
# initializeParams.sourceImage or disks.source is required except for local SSD.
|
||||||
# To create a disk with one of the public operating system images, specify the
|
# To create a disk with one of the public operating system images, specify the
|
||||||
|
@ -1344,6 +1351,22 @@ module Google
|
||||||
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
||||||
attr_accessor :source_image_encryption_key
|
attr_accessor :source_image_encryption_key
|
||||||
|
|
||||||
|
# The source snapshot to create this disk. When creating a new instance, one of
|
||||||
|
# initializeParams.sourceSnapshot or disks.source is required except for local
|
||||||
|
# SSD.
|
||||||
|
# To create a disk with a snapshot that you created, specify the snapshot name
|
||||||
|
# in the following format:
|
||||||
|
# global/snapshots/my-backup
|
||||||
|
# If the source snapshot is deleted later, this field will not be set.
|
||||||
|
# Corresponds to the JSON property `sourceSnapshot`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :source_snapshot
|
||||||
|
|
||||||
|
# Represents a customer-supplied encryption key
|
||||||
|
# Corresponds to the JSON property `sourceSnapshotEncryptionKey`
|
||||||
|
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
||||||
|
attr_accessor :source_snapshot_encryption_key
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -1356,8 +1379,11 @@ module Google
|
||||||
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
||||||
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
||||||
@labels = args[:labels] if args.key?(:labels)
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
||||||
@source_image = args[:source_image] if args.key?(:source_image)
|
@source_image = args[:source_image] if args.key?(:source_image)
|
||||||
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
@source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
|
||||||
|
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
|
||||||
|
@source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3945,7 +3971,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :replacement
|
attr_accessor :replacement
|
||||||
|
|
||||||
# The deprecation state of this resource. This can be ACTIVE DEPRECATED,
|
# The deprecation state of this resource. This can be ACTIVE, DEPRECATED,
|
||||||
# OBSOLETE, or DELETED. Operations which communicate the end of life date for an
|
# OBSOLETE, or DELETED. Operations which communicate the end of life date for an
|
||||||
# image, can use ACTIVE. Operations which create a new resource using a
|
# image, can use ACTIVE. Operations which create a new resource using a
|
||||||
# DEPRECATED resource will return successfully, but with a warning indicating
|
# DEPRECATED resource will return successfully, but with a warning indicating
|
||||||
|
@ -6030,7 +6056,8 @@ module Google
|
||||||
# [Output Only] Absolute value of VM instances calculated based on the specific
|
# [Output Only] Absolute value of VM instances calculated based on the specific
|
||||||
# mode.
|
# mode.
|
||||||
#
|
#
|
||||||
# - If the value is fixed, then the caculated value is equal to the fixed value.
|
# - If the value is fixed, then the calculated value is equal to the fixed value.
|
||||||
|
#
|
||||||
# - If the value is a percent, then the calculated value is percent/100 *
|
# - If the value is a percent, then the calculated value is percent/100 *
|
||||||
# targetSize. For example, the calculated value of a 80% of a managed instance
|
# targetSize. For example, the calculated value of a 80% of a managed instance
|
||||||
# group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
|
# group with 150 instances would be (80/100 * 150) = 120 VM instances. If there
|
||||||
|
@ -7221,9 +7248,9 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :timeout_sec
|
attr_accessor :timeout_sec
|
||||||
|
|
||||||
# Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not
|
# Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
||||||
# specified, the default is TCP. Exactly one of the protocol-specific health
|
# If not specified, the default is TCP. Exactly one of the protocol-specific
|
||||||
# check field must be specified, which must match type field.
|
# health check field must be specified, which must match type field.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -9152,8 +9179,11 @@ module Google
|
||||||
# @return [Array<Google::Apis::ComputeBeta::NamedPort>]
|
# @return [Array<Google::Apis::ComputeBeta::NamedPort>]
|
||||||
attr_accessor :named_ports
|
attr_accessor :named_ports
|
||||||
|
|
||||||
# [Output Only] The list of instance actions and the number of instances in this
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# managed instance group that are pending for each of those actions.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The list
|
||||||
|
# of instance actions and the number of instances in this managed instance group
|
||||||
|
# that are pending for each of those actions.
|
||||||
# Corresponds to the JSON property `pendingActions`
|
# Corresponds to the JSON property `pendingActions`
|
||||||
# @return [Google::Apis::ComputeBeta::InstanceGroupManagerPendingActionsSummary]
|
# @return [Google::Apis::ComputeBeta::InstanceGroupManagerPendingActionsSummary]
|
||||||
attr_accessor :pending_actions
|
attr_accessor :pending_actions
|
||||||
|
@ -9204,8 +9234,8 @@ module Google
|
||||||
|
|
||||||
# Specifies the instance templates used by this managed instance group to create
|
# Specifies the instance templates used by this managed instance group to create
|
||||||
# instances.
|
# instances.
|
||||||
# Each version is defined by an instanceTemplate. Every template can appear at
|
# Each version is defined by an instanceTemplate and a name. Every version can
|
||||||
# most once per instance group. This field overrides the top-level
|
# appear at most once per instance group. This field overrides the top-level
|
||||||
# instanceTemplate field. Read more about the relationships between these fields.
|
# instanceTemplate field. Read more about the relationships between these fields.
|
||||||
# Exactly one version must leave the targetSize field unset. That version will
|
# Exactly one version must leave the targetSize field unset. That version will
|
||||||
# be applied to all remaining instances. For more information, read about canary
|
# be applied to all remaining instances. For more information, read about canary
|
||||||
|
@ -9611,26 +9641,34 @@ module Google
|
||||||
class InstanceGroupManagerPendingActionsSummary
|
class InstanceGroupManagerPendingActionsSummary
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be created.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be created.
|
||||||
# Corresponds to the JSON property `creating`
|
# Corresponds to the JSON property `creating`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :creating
|
attr_accessor :creating
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be deleted.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be deleted.
|
||||||
# Corresponds to the JSON property `deleting`
|
# Corresponds to the JSON property `deleting`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :deleting
|
attr_accessor :deleting
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be recreated.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be recreated.
|
||||||
# Corresponds to the JSON property `recreating`
|
# Corresponds to the JSON property `recreating`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :recreating
|
attr_accessor :recreating
|
||||||
|
|
||||||
# [Output Only] The number of instances in the managed instance group that are
|
# [Deprecated] This field is deprecated and will be removed. Prefer using the
|
||||||
# pending to be restarted.
|
# status field instead. Please contact cloud-updater-feedback@google.com to
|
||||||
|
# leave feedback if your workload relies on this field. [Output Only] The number
|
||||||
|
# of instances in the managed instance group that are pending to be restarted.
|
||||||
# Corresponds to the JSON property `restarting`
|
# Corresponds to the JSON property `restarting`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :restarting
|
attr_accessor :restarting
|
||||||
|
@ -9707,6 +9745,11 @@ module Google
|
||||||
class InstanceGroupManagerUpdatePolicy
|
class InstanceGroupManagerUpdatePolicy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `instanceRedistributionType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :instance_redistribution_type
|
||||||
|
|
||||||
# Encapsulates numeric value that can be either absolute or relative.
|
# Encapsulates numeric value that can be either absolute or relative.
|
||||||
# Corresponds to the JSON property `maxSurge`
|
# Corresponds to the JSON property `maxSurge`
|
||||||
# @return [Google::Apis::ComputeBeta::FixedOrPercent]
|
# @return [Google::Apis::ComputeBeta::FixedOrPercent]
|
||||||
|
@ -9744,6 +9787,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@instance_redistribution_type = args[:instance_redistribution_type] if args.key?(:instance_redistribution_type)
|
||||||
@max_surge = args[:max_surge] if args.key?(:max_surge)
|
@max_surge = args[:max_surge] if args.key?(:max_surge)
|
||||||
@max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
|
@max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
|
||||||
@min_ready_sec = args[:min_ready_sec] if args.key?(:min_ready_sec)
|
@min_ready_sec = args[:min_ready_sec] if args.key?(:min_ready_sec)
|
||||||
|
@ -9756,7 +9800,9 @@ module Google
|
||||||
class InstanceGroupManagerVersion
|
class InstanceGroupManagerVersion
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
#
|
# The URL of the instance template that is specified for this managed instance
|
||||||
|
# group. The group uses this template to create new instances in the managed
|
||||||
|
# instance group until the `targetSize` for this version is reached.
|
||||||
# Corresponds to the JSON property `instanceTemplate`
|
# Corresponds to the JSON property `instanceTemplate`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :instance_template
|
attr_accessor :instance_template
|
||||||
|
@ -15164,7 +15210,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A NodeGroup resource.
|
# A NodeGroup resource. To create a node group, you must first create a node
|
||||||
|
# templates. To learn more about node groups and sole-tenant nodes, read the
|
||||||
|
# Sole-tenant nodes documentation. (== resource_for beta.nodeGroups ==) (==
|
||||||
|
# resource_for v1.nodeGroups ==)
|
||||||
class NodeGroup
|
class NodeGroup
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -15793,7 +15842,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Node Template resource.
|
# A Node Template resource. To learn more about node templates and sole-tenant
|
||||||
|
# nodes, read the Sole-tenant nodes documentation. (== resource_for beta.
|
||||||
|
# nodeTemplates ==) (== resource_for v1.nodeTemplates ==)
|
||||||
class NodeTemplate
|
class NodeTemplate
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -19644,6 +19695,11 @@ module Google
|
||||||
# @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy]
|
# @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy]
|
||||||
attr_accessor :snapshot_schedule_policy
|
attr_accessor :snapshot_schedule_policy
|
||||||
|
|
||||||
|
# [Output Only] The status of resource policy creation.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -19658,6 +19714,7 @@ module Google
|
||||||
@region = args[:region] if args.key?(:region)
|
@region = args[:region] if args.key?(:region)
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
@snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -20236,6 +20293,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_hop_instance
|
attr_accessor :next_hop_instance
|
||||||
|
|
||||||
|
# [Output Only] The URL to an InterconnectAttachment which is the next hop for
|
||||||
|
# the route. This field will only be populated for the dynamic routes generated
|
||||||
|
# by Cloud Router with a linked interconnectAttachment.
|
||||||
|
# Corresponds to the JSON property `nextHopInterconnectAttachment`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_hop_interconnect_attachment
|
||||||
|
|
||||||
# The network IP address of an instance that should handle matching packets.
|
# The network IP address of an instance that should handle matching packets.
|
||||||
# Only IPv4 is supported.
|
# Only IPv4 is supported.
|
||||||
# Corresponds to the JSON property `nextHopIp`
|
# Corresponds to the JSON property `nextHopIp`
|
||||||
|
@ -20298,6 +20362,7 @@ module Google
|
||||||
@next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
|
@next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
|
||||||
@next_hop_ilb = args[:next_hop_ilb] if args.key?(:next_hop_ilb)
|
@next_hop_ilb = args[:next_hop_ilb] if args.key?(:next_hop_ilb)
|
||||||
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
|
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
|
||||||
|
@next_hop_interconnect_attachment = args[:next_hop_interconnect_attachment] if args.key?(:next_hop_interconnect_attachment)
|
||||||
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
|
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
|
||||||
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
|
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
|
||||||
@next_hop_peering = args[:next_hop_peering] if args.key?(:next_hop_peering)
|
@next_hop_peering = args[:next_hop_peering] if args.key?(:next_hop_peering)
|
||||||
|
@ -28594,6 +28659,7 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==)
|
# A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==)
|
||||||
|
# Next ID: 17
|
||||||
class Zone
|
class Zone
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -4364,9 +4364,13 @@ module Google
|
||||||
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
|
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation
|
||||||
|
|
||||||
hash :labels, as: 'labels'
|
hash :labels, as: 'labels'
|
||||||
|
collection :resource_policies, as: 'resourcePolicies'
|
||||||
property :source_image, as: 'sourceImage'
|
property :source_image, as: 'sourceImage'
|
||||||
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
||||||
|
|
||||||
|
property :source_snapshot, as: 'sourceSnapshot'
|
||||||
|
property :source_snapshot_encryption_key, as: 'sourceSnapshotEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -6337,6 +6341,7 @@ module Google
|
||||||
class InstanceGroupManagerUpdatePolicy
|
class InstanceGroupManagerUpdatePolicy
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :instance_redistribution_type, as: 'instanceRedistributionType'
|
||||||
property :max_surge, as: 'maxSurge', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
property :max_surge, as: 'maxSurge', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
||||||
|
|
||||||
property :max_unavailable, as: 'maxUnavailable', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
property :max_unavailable, as: 'maxUnavailable', class: Google::Apis::ComputeBeta::FixedOrPercent, decorator: Google::Apis::ComputeBeta::FixedOrPercent::Representation
|
||||||
|
@ -8971,6 +8976,7 @@ module Google
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy::Representation
|
property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy::Representation
|
||||||
|
|
||||||
|
property :status, as: 'status'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -9129,6 +9135,7 @@ module Google
|
||||||
property :next_hop_gateway, as: 'nextHopGateway'
|
property :next_hop_gateway, as: 'nextHopGateway'
|
||||||
property :next_hop_ilb, as: 'nextHopIlb'
|
property :next_hop_ilb, as: 'nextHopIlb'
|
||||||
property :next_hop_instance, as: 'nextHopInstance'
|
property :next_hop_instance, as: 'nextHopInstance'
|
||||||
|
property :next_hop_interconnect_attachment, as: 'nextHopInterconnectAttachment'
|
||||||
property :next_hop_ip, as: 'nextHopIp'
|
property :next_hop_ip, as: 'nextHopIp'
|
||||||
property :next_hop_network, as: 'nextHopNetwork'
|
property :next_hop_network, as: 'nextHopNetwork'
|
||||||
property :next_hop_peering, as: 'nextHopPeering'
|
property :next_hop_peering, as: 'nextHopPeering'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||||
module ComputeV1
|
module ComputeV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190308'
|
REVISION = '20190403'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -376,6 +376,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BackendServiceReference
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class BackendServicesScopedList
|
class BackendServicesScopedList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -748,6 +754,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ForwardingRuleReference
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ForwardingRulesScopedList
|
class ForwardingRulesScopedList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -838,6 +850,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HealthStatusForNetworkEndpoint
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class HostRule
|
class HostRule
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1672,6 +1690,114 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkEndpoint
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroup
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupAggregatedList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsAttachEndpointsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsDetachEndpointsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsListEndpointsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsListNetworkEndpoints
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsScopedList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointWithHealthStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkInterface
|
class NetworkInterface
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -3849,8 +3975,10 @@ module Google
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :group, as: 'group'
|
property :group, as: 'group'
|
||||||
property :max_connections, as: 'maxConnections'
|
property :max_connections, as: 'maxConnections'
|
||||||
|
property :max_connections_per_endpoint, as: 'maxConnectionsPerEndpoint'
|
||||||
property :max_connections_per_instance, as: 'maxConnectionsPerInstance'
|
property :max_connections_per_instance, as: 'maxConnectionsPerInstance'
|
||||||
property :max_rate, as: 'maxRate'
|
property :max_rate, as: 'maxRate'
|
||||||
|
property :max_rate_per_endpoint, as: 'maxRatePerEndpoint'
|
||||||
property :max_rate_per_instance, as: 'maxRatePerInstance'
|
property :max_rate_per_instance, as: 'maxRatePerInstance'
|
||||||
property :max_utilization, as: 'maxUtilization'
|
property :max_utilization, as: 'maxUtilization'
|
||||||
end
|
end
|
||||||
|
@ -4038,6 +4166,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BackendServiceReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :backend_service, as: 'backendService'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BackendServicesScopedList
|
class BackendServicesScopedList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -4728,6 +4863,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ForwardingRuleReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :forwarding_rule, as: 'forwardingRule'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ForwardingRulesScopedList
|
class ForwardingRulesScopedList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -4788,6 +4930,7 @@ module Google
|
||||||
property :host, as: 'host'
|
property :host, as: 'host'
|
||||||
property :port, as: 'port'
|
property :port, as: 'port'
|
||||||
property :port_name, as: 'portName'
|
property :port_name, as: 'portName'
|
||||||
|
property :port_specification, as: 'portSpecification'
|
||||||
property :proxy_header, as: 'proxyHeader'
|
property :proxy_header, as: 'proxyHeader'
|
||||||
property :request_path, as: 'requestPath'
|
property :request_path, as: 'requestPath'
|
||||||
property :response, as: 'response'
|
property :response, as: 'response'
|
||||||
|
@ -4800,6 +4943,7 @@ module Google
|
||||||
property :host, as: 'host'
|
property :host, as: 'host'
|
||||||
property :port, as: 'port'
|
property :port, as: 'port'
|
||||||
property :port_name, as: 'portName'
|
property :port_name, as: 'portName'
|
||||||
|
property :port_specification, as: 'portSpecification'
|
||||||
property :proxy_header, as: 'proxyHeader'
|
property :proxy_header, as: 'proxyHeader'
|
||||||
property :request_path, as: 'requestPath'
|
property :request_path, as: 'requestPath'
|
||||||
property :response, as: 'response'
|
property :response, as: 'response'
|
||||||
|
@ -4812,6 +4956,7 @@ module Google
|
||||||
property :host, as: 'host'
|
property :host, as: 'host'
|
||||||
property :port, as: 'port'
|
property :port, as: 'port'
|
||||||
property :port_name, as: 'portName'
|
property :port_name, as: 'portName'
|
||||||
|
property :port_specification, as: 'portSpecification'
|
||||||
property :proxy_header, as: 'proxyHeader'
|
property :proxy_header, as: 'proxyHeader'
|
||||||
property :request_path, as: 'requestPath'
|
property :request_path, as: 'requestPath'
|
||||||
property :response, as: 'response'
|
property :response, as: 'response'
|
||||||
|
@ -4894,6 +5039,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class HealthStatusForNetworkEndpoint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :backend_service, as: 'backendService', class: Google::Apis::ComputeV1::BackendServiceReference, decorator: Google::Apis::ComputeV1::BackendServiceReference::Representation
|
||||||
|
|
||||||
|
property :forwarding_rule, as: 'forwardingRule', class: Google::Apis::ComputeV1::ForwardingRuleReference, decorator: Google::Apis::ComputeV1::ForwardingRuleReference::Representation
|
||||||
|
|
||||||
|
property :health_check, as: 'healthCheck', class: Google::Apis::ComputeV1::HealthCheckReference, decorator: Google::Apis::ComputeV1::HealthCheckReference::Representation
|
||||||
|
|
||||||
|
property :health_state, as: 'healthState'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class HostRule
|
class HostRule
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -5651,6 +5809,8 @@ module Google
|
||||||
|
|
||||||
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeV1::ServiceAccount, decorator: Google::Apis::ComputeV1::ServiceAccount::Representation
|
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeV1::ServiceAccount, decorator: Google::Apis::ComputeV1::ServiceAccount::Representation
|
||||||
|
|
||||||
|
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ComputeV1::ShieldedInstanceConfig, decorator: Google::Apis::ComputeV1::ShieldedInstanceConfig::Representation
|
||||||
|
|
||||||
property :tags, as: 'tags', class: Google::Apis::ComputeV1::Tags, decorator: Google::Apis::ComputeV1::Tags::Representation
|
property :tags, as: 'tags', class: Google::Apis::ComputeV1::Tags, decorator: Google::Apis::ComputeV1::Tags::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -6475,6 +6635,189 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkEndpoint
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :instance, as: 'instance'
|
||||||
|
property :ip_address, as: 'ipAddress'
|
||||||
|
property :port, as: 'port'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroup
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
property :default_port, as: 'defaultPort'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :network, as: 'network'
|
||||||
|
property :network_endpoint_type, as: 'networkEndpointType'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :size, as: 'size'
|
||||||
|
property :subnetwork, as: 'subnetwork'
|
||||||
|
property :zone, as: 'zone'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupAggregatedList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
hash :items, as: 'items', class: Google::Apis::ComputeV1::NetworkEndpointGroupsScopedList, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupsScopedList::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :warning, as: 'warning', class: Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList::Warning, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeV1::NetworkEndpointGroup, decorator: Google::Apis::ComputeV1::NetworkEndpointGroup::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :warning, as: 'warning', class: Google::Apis::ComputeV1::NetworkEndpointGroupList::Warning, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupList::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeV1::NetworkEndpointGroupList::Warning::Datum, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupList::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsAttachEndpointsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::ComputeV1::NetworkEndpoint, decorator: Google::Apis::ComputeV1::NetworkEndpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsDetachEndpointsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::ComputeV1::NetworkEndpoint, decorator: Google::Apis::ComputeV1::NetworkEndpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsListEndpointsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :health_status, as: 'healthStatus'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsListNetworkEndpoints
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeV1::NetworkEndpointWithHealthStatus, decorator: Google::Apis::ComputeV1::NetworkEndpointWithHealthStatus::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :warning, as: 'warning', class: Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints::Warning, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints::Warning::Datum, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointGroupsScopedList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :network_endpoint_groups, as: 'networkEndpointGroups', class: Google::Apis::ComputeV1::NetworkEndpointGroup, decorator: Google::Apis::ComputeV1::NetworkEndpointGroup::Representation
|
||||||
|
|
||||||
|
property :warning, as: 'warning', class: Google::Apis::ComputeV1::NetworkEndpointGroupsScopedList::Warning, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupsScopedList::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeV1::NetworkEndpointGroupsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupsScopedList::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NetworkEndpointWithHealthStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :healths, as: 'healths', class: Google::Apis::ComputeV1::HealthStatusForNetworkEndpoint, decorator: Google::Apis::ComputeV1::HealthStatusForNetworkEndpoint::Representation
|
||||||
|
|
||||||
|
property :network_endpoint, as: 'networkEndpoint', class: Google::Apis::ComputeV1::NetworkEndpoint, decorator: Google::Apis::ComputeV1::NetworkEndpoint::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkInterface
|
class NetworkInterface
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -7890,6 +8233,7 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :port, as: 'port'
|
property :port, as: 'port'
|
||||||
property :port_name, as: 'portName'
|
property :port_name, as: 'portName'
|
||||||
|
property :port_specification, as: 'portSpecification'
|
||||||
property :proxy_header, as: 'proxyHeader'
|
property :proxy_header, as: 'proxyHeader'
|
||||||
property :request, as: 'request'
|
property :request, as: 'request'
|
||||||
property :response, as: 'response'
|
property :response, as: 'response'
|
||||||
|
@ -8083,6 +8427,7 @@ module Google
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
|
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
|
||||||
property :storage_bytes_status, as: 'storageBytesStatus'
|
property :storage_bytes_status, as: 'storageBytesStatus'
|
||||||
|
collection :storage_locations, as: 'storageLocations'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -8395,6 +8740,7 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :port, as: 'port'
|
property :port, as: 'port'
|
||||||
property :port_name, as: 'portName'
|
property :port_name, as: 'portName'
|
||||||
|
property :port_specification, as: 'portSpecification'
|
||||||
property :proxy_header, as: 'proxyHeader'
|
property :proxy_header, as: 'proxyHeader'
|
||||||
property :request, as: 'request'
|
property :request, as: 'request'
|
||||||
property :response, as: 'response'
|
property :response, as: 'response'
|
||||||
|
|
|
@ -10273,6 +10273,539 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Retrieves the list of network endpoint groups and sorts them by zone.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter expression that filters resources listed in the response. The
|
||||||
|
# expression must specify the field name, a comparison operator, and the value
|
||||||
|
# that you want to use for filtering. The value must be a string, a number, or a
|
||||||
|
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||||
|
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||||
|
# instances named example-instance by specifying name != example-instance.
|
||||||
|
# You can also filter nested fields. For example, you could specify scheduling.
|
||||||
|
# automaticRestart = false to include instances only if they are not scheduled
|
||||||
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
|
# on resource labels.
|
||||||
|
# To filter on multiple expressions, provide each separate expression within
|
||||||
|
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||||
|
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||||
|
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||||
|
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||||
|
# automaticRestart = true).
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# The maximum number of results per page that should be returned. If the number
|
||||||
|
# of available results is larger than maxResults, Compute Engine returns a
|
||||||
|
# nextPageToken that can be used to get the next page of results in subsequent
|
||||||
|
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||||
|
# a previous list request to get the next page of results.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList]
|
||||||
|
#
|
||||||
|
# @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 aggregated_network_endpoint_group_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/aggregated/networkEndpointGroups', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::NetworkEndpointGroupAggregatedList
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Attach a list of network endpoints to the specified network endpoint group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where the network endpoint group is located. It should
|
||||||
|
# comply with RFC1035.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group where you are attaching network
|
||||||
|
# endpoints to. It should comply with RFC1035.
|
||||||
|
# @param [Google::Apis::ComputeV1::NetworkEndpointGroupsAttachEndpointsRequest] network_endpoint_groups_attach_endpoints_request_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def attach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeV1::NetworkEndpointGroupsAttachEndpointsRequest::Representation
|
||||||
|
command.request_object = network_endpoint_groups_attach_endpoints_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Deletes the specified network endpoint group. The network endpoints in the NEG
|
||||||
|
# and the VM instances they belong to are not terminated when the NEG is deleted.
|
||||||
|
# Note that the NEG cannot be deleted if there are backend services referencing
|
||||||
|
# it.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where the network endpoint group is located. It should
|
||||||
|
# comply with RFC1035.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group to delete. It should comply with
|
||||||
|
# RFC1035.
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def delete_network_endpoint_group(project, zone, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Detach a list of network endpoints from the specified network endpoint group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where the network endpoint group is located. It should
|
||||||
|
# comply with RFC1035.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group where you are removing network
|
||||||
|
# endpoints. It should comply with RFC1035.
|
||||||
|
# @param [Google::Apis::ComputeV1::NetworkEndpointGroupsDetachEndpointsRequest] network_endpoint_groups_detach_endpoints_request_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def detach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeV1::NetworkEndpointGroupsDetachEndpointsRequest::Representation
|
||||||
|
command.request_object = network_endpoint_groups_detach_endpoints_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns the specified network endpoint group. Gets a list of available network
|
||||||
|
# endpoint groups by making a list() request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where the network endpoint group is located. It should
|
||||||
|
# comply with RFC1035.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group. It should comply with RFC1035.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::NetworkEndpointGroup] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::NetworkEndpointGroup]
|
||||||
|
#
|
||||||
|
# @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_network_endpoint_group(project, zone, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::NetworkEndpointGroup::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::NetworkEndpointGroup
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a network endpoint group in the specified project using the parameters
|
||||||
|
# that are included in the request.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where you want to create the network endpoint group. It
|
||||||
|
# should comply with RFC1035.
|
||||||
|
# @param [Google::Apis::ComputeV1::NetworkEndpointGroup] network_endpoint_group_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def insert_network_endpoint_group(project, zone, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeV1::NetworkEndpointGroup::Representation
|
||||||
|
command.request_object = network_endpoint_group_object
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves the list of network endpoint groups that are located in the
|
||||||
|
# specified project and zone.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where the network endpoint group is located. It should
|
||||||
|
# comply with RFC1035.
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter expression that filters resources listed in the response. The
|
||||||
|
# expression must specify the field name, a comparison operator, and the value
|
||||||
|
# that you want to use for filtering. The value must be a string, a number, or a
|
||||||
|
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||||
|
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||||
|
# instances named example-instance by specifying name != example-instance.
|
||||||
|
# You can also filter nested fields. For example, you could specify scheduling.
|
||||||
|
# automaticRestart = false to include instances only if they are not scheduled
|
||||||
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
|
# on resource labels.
|
||||||
|
# To filter on multiple expressions, provide each separate expression within
|
||||||
|
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||||
|
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||||
|
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||||
|
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||||
|
# automaticRestart = true).
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# The maximum number of results per page that should be returned. If the number
|
||||||
|
# of available results is larger than maxResults, Compute Engine returns a
|
||||||
|
# nextPageToken that can be used to get the next page of results in subsequent
|
||||||
|
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||||
|
# a previous list request to get the next page of results.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::NetworkEndpointGroupList] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::NetworkEndpointGroupList]
|
||||||
|
#
|
||||||
|
# @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_network_endpoint_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups', options)
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::NetworkEndpointGroupList::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::NetworkEndpointGroupList
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists the network endpoints in the specified network endpoint group.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone where the network endpoint group is located. It should
|
||||||
|
# comply with RFC1035.
|
||||||
|
# @param [String] network_endpoint_group
|
||||||
|
# The name of the network endpoint group from which you want to generate a list
|
||||||
|
# of included network endpoints. It should comply with RFC1035.
|
||||||
|
# @param [Google::Apis::ComputeV1::NetworkEndpointGroupsListEndpointsRequest] network_endpoint_groups_list_endpoints_request_object
|
||||||
|
# @param [String] filter
|
||||||
|
# A filter expression that filters resources listed in the response. The
|
||||||
|
# expression must specify the field name, a comparison operator, and the value
|
||||||
|
# that you want to use for filtering. The value must be a string, a number, or a
|
||||||
|
# boolean. The comparison operator must be either =, !=, >, or <.
|
||||||
|
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||||
|
# instances named example-instance by specifying name != example-instance.
|
||||||
|
# You can also filter nested fields. For example, you could specify scheduling.
|
||||||
|
# automaticRestart = false to include instances only if they are not scheduled
|
||||||
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
|
# on resource labels.
|
||||||
|
# To filter on multiple expressions, provide each separate expression within
|
||||||
|
# parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
|
||||||
|
# Intel Skylake"). By default, each expression is an AND expression. However,
|
||||||
|
# you can include AND and OR expressions explicitly. For example, (cpuPlatform =
|
||||||
|
# "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
||||||
|
# automaticRestart = true).
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# The maximum number of results per page that should be returned. If the number
|
||||||
|
# of available results is larger than maxResults, Compute Engine returns a
|
||||||
|
# nextPageToken that can be used to get the next page of results in subsequent
|
||||||
|
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
|
# alphanumerical order based on the resource name.
|
||||||
|
# You can also sort results in descending order based on the creation timestamp
|
||||||
|
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||||
|
# creationTimestamp field in reverse chronological order (newest result first).
|
||||||
|
# Use this to sort resources like operations so that the newest operation is
|
||||||
|
# returned first.
|
||||||
|
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||||
|
# a previous list request to get the next page of results.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints]
|
||||||
|
#
|
||||||
|
# @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_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_list_endpoints_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeV1::NetworkEndpointGroupsListEndpointsRequest::Representation
|
||||||
|
command.request_object = network_endpoint_groups_list_endpoints_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::NetworkEndpointGroupsListNetworkEndpoints
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns permissions that a caller has on the specified resource.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone for this request.
|
||||||
|
# @param [String] resource
|
||||||
|
# Name or id of the resource for this request.
|
||||||
|
# @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||||
|
# characters.
|
||||||
|
# @param [String] user_ip
|
||||||
|
# Deprecated. Please use quotaUser instead.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeV1::TestPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def test_network_endpoint_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
|
||||||
|
command.request_object = test_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['resource'] = resource unless resource.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Adds a peering to the specified network.
|
# Adds a peering to the specified network.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-engine/
|
# @see https://cloud.google.com/container-engine/
|
||||||
module ContainerV1
|
module ContainerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20190316'
|
REVISION = '20190411'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue