Autogenerated update (2020-06-18)

Delete:
- customsearch_v1

Update:
- dataproc_v1
- dataproc_v1beta2
- fcm_v1
- firebase_v1beta1
- lifesciences_v2beta
- servicemanagement_v1
This commit is contained in:
Google APIs 2020-06-18 00:38:12 +00:00
parent eb8ede0e4e
commit 68e92e4d7d
20 changed files with 276 additions and 2715 deletions

View File

@ -1,31 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/customsearch_v1/service.rb'
require 'google/apis/customsearch_v1/classes.rb'
require 'google/apis/customsearch_v1/representations.rb'
module Google
module Apis
# Custom Search API
#
# Searches over a website or collection of websites
#
# @see https://developers.google.com/custom-search/v1/introduction
module CustomsearchV1
VERSION = 'V1'
REVISION = '20200504'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -1,372 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CustomsearchV1
class Promotion
class Representation < Google::Apis::Core::JsonRepresentation; end
class BodyLine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Result
class Representation < Google::Apis::Core::JsonRepresentation; end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Label
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Search
class Representation < Google::Apis::Core::JsonRepresentation; end
class Queries
class Representation < Google::Apis::Core::JsonRepresentation; end
class NextPage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PreviousPage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Request
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class SearchInformation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Spelling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Url
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Promotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :body_lines, as: 'bodyLines', class: Google::Apis::CustomsearchV1::Promotion::BodyLine, decorator: Google::Apis::CustomsearchV1::Promotion::BodyLine::Representation
property :display_link, as: 'displayLink'
property :html_title, as: 'htmlTitle'
property :image, as: 'image', class: Google::Apis::CustomsearchV1::Promotion::Image, decorator: Google::Apis::CustomsearchV1::Promotion::Image::Representation
property :link, as: 'link'
property :title, as: 'title'
end
class BodyLine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :html_title, as: 'htmlTitle'
property :link, as: 'link'
property :title, as: 'title'
property :url, as: 'url'
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :source, as: 'source'
property :width, as: 'width'
end
end
end
class Result
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cache_id, as: 'cacheId'
property :display_link, as: 'displayLink'
property :file_format, as: 'fileFormat'
property :formatted_url, as: 'formattedUrl'
property :html_formatted_url, as: 'htmlFormattedUrl'
property :html_snippet, as: 'htmlSnippet'
property :html_title, as: 'htmlTitle'
property :image, as: 'image', class: Google::Apis::CustomsearchV1::Result::Image, decorator: Google::Apis::CustomsearchV1::Result::Image::Representation
property :kind, as: 'kind'
collection :labels, as: 'labels', class: Google::Apis::CustomsearchV1::Result::Label, decorator: Google::Apis::CustomsearchV1::Result::Label::Representation
property :link, as: 'link'
property :mime, as: 'mime'
hash :pagemap, as: 'pagemap'
property :snippet, as: 'snippet'
property :title, as: 'title'
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :byte_size, as: 'byteSize'
property :context_link, as: 'contextLink'
property :height, as: 'height'
property :thumbnail_height, as: 'thumbnailHeight'
property :thumbnail_link, as: 'thumbnailLink'
property :thumbnail_width, as: 'thumbnailWidth'
property :width, as: 'width'
end
end
class Label
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :label_with_op, as: 'label_with_op'
property :name, as: 'name'
end
end
end
class Search
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :context, as: 'context'
collection :items, as: 'items', class: Google::Apis::CustomsearchV1::Result, decorator: Google::Apis::CustomsearchV1::Result::Representation
property :kind, as: 'kind'
collection :promotions, as: 'promotions', class: Google::Apis::CustomsearchV1::Promotion, decorator: Google::Apis::CustomsearchV1::Promotion::Representation
property :queries, as: 'queries', class: Google::Apis::CustomsearchV1::Search::Queries, decorator: Google::Apis::CustomsearchV1::Search::Queries::Representation
property :search_information, as: 'searchInformation', class: Google::Apis::CustomsearchV1::Search::SearchInformation, decorator: Google::Apis::CustomsearchV1::Search::SearchInformation::Representation
property :spelling, as: 'spelling', class: Google::Apis::CustomsearchV1::Search::Spelling, decorator: Google::Apis::CustomsearchV1::Search::Spelling::Representation
property :url, as: 'url', class: Google::Apis::CustomsearchV1::Search::Url, decorator: Google::Apis::CustomsearchV1::Search::Url::Representation
end
class Queries
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :next_page, as: 'nextPage', class: Google::Apis::CustomsearchV1::Search::Queries::NextPage, decorator: Google::Apis::CustomsearchV1::Search::Queries::NextPage::Representation
collection :previous_page, as: 'previousPage', class: Google::Apis::CustomsearchV1::Search::Queries::PreviousPage, decorator: Google::Apis::CustomsearchV1::Search::Queries::PreviousPage::Representation
collection :request, as: 'request', class: Google::Apis::CustomsearchV1::Search::Queries::Request, decorator: Google::Apis::CustomsearchV1::Search::Queries::Request::Representation
end
class NextPage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :cr, as: 'cr'
property :cx, as: 'cx'
property :date_restrict, as: 'dateRestrict'
property :disable_cn_tw_translation, as: 'disableCnTwTranslation'
property :exact_terms, as: 'exactTerms'
property :exclude_terms, as: 'excludeTerms'
property :file_type, as: 'fileType'
property :filter, as: 'filter'
property :gl, as: 'gl'
property :google_host, as: 'googleHost'
property :high_range, as: 'highRange'
property :hl, as: 'hl'
property :hq, as: 'hq'
property :img_color_type, as: 'imgColorType'
property :img_dominant_color, as: 'imgDominantColor'
property :img_size, as: 'imgSize'
property :img_type, as: 'imgType'
property :input_encoding, as: 'inputEncoding'
property :language, as: 'language'
property :link_site, as: 'linkSite'
property :low_range, as: 'lowRange'
property :or_terms, as: 'orTerms'
property :output_encoding, as: 'outputEncoding'
property :related_site, as: 'relatedSite'
property :rights, as: 'rights'
property :safe, as: 'safe'
property :search_terms, as: 'searchTerms'
property :search_type, as: 'searchType'
property :site_search, as: 'siteSearch'
property :site_search_filter, as: 'siteSearchFilter'
property :sort, as: 'sort'
property :start_index, as: 'startIndex'
property :start_page, as: 'startPage'
property :title, as: 'title'
property :total_results, :numeric_string => true, as: 'totalResults'
end
end
class PreviousPage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :cr, as: 'cr'
property :cx, as: 'cx'
property :date_restrict, as: 'dateRestrict'
property :disable_cn_tw_translation, as: 'disableCnTwTranslation'
property :exact_terms, as: 'exactTerms'
property :exclude_terms, as: 'excludeTerms'
property :file_type, as: 'fileType'
property :filter, as: 'filter'
property :gl, as: 'gl'
property :google_host, as: 'googleHost'
property :high_range, as: 'highRange'
property :hl, as: 'hl'
property :hq, as: 'hq'
property :img_color_type, as: 'imgColorType'
property :img_dominant_color, as: 'imgDominantColor'
property :img_size, as: 'imgSize'
property :img_type, as: 'imgType'
property :input_encoding, as: 'inputEncoding'
property :language, as: 'language'
property :link_site, as: 'linkSite'
property :low_range, as: 'lowRange'
property :or_terms, as: 'orTerms'
property :output_encoding, as: 'outputEncoding'
property :related_site, as: 'relatedSite'
property :rights, as: 'rights'
property :safe, as: 'safe'
property :search_terms, as: 'searchTerms'
property :search_type, as: 'searchType'
property :site_search, as: 'siteSearch'
property :site_search_filter, as: 'siteSearchFilter'
property :sort, as: 'sort'
property :start_index, as: 'startIndex'
property :start_page, as: 'startPage'
property :title, as: 'title'
property :total_results, :numeric_string => true, as: 'totalResults'
end
end
class Request
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :cr, as: 'cr'
property :cx, as: 'cx'
property :date_restrict, as: 'dateRestrict'
property :disable_cn_tw_translation, as: 'disableCnTwTranslation'
property :exact_terms, as: 'exactTerms'
property :exclude_terms, as: 'excludeTerms'
property :file_type, as: 'fileType'
property :filter, as: 'filter'
property :gl, as: 'gl'
property :google_host, as: 'googleHost'
property :high_range, as: 'highRange'
property :hl, as: 'hl'
property :hq, as: 'hq'
property :img_color_type, as: 'imgColorType'
property :img_dominant_color, as: 'imgDominantColor'
property :img_size, as: 'imgSize'
property :img_type, as: 'imgType'
property :input_encoding, as: 'inputEncoding'
property :language, as: 'language'
property :link_site, as: 'linkSite'
property :low_range, as: 'lowRange'
property :or_terms, as: 'orTerms'
property :output_encoding, as: 'outputEncoding'
property :related_site, as: 'relatedSite'
property :rights, as: 'rights'
property :safe, as: 'safe'
property :search_terms, as: 'searchTerms'
property :search_type, as: 'searchType'
property :site_search, as: 'siteSearch'
property :site_search_filter, as: 'siteSearchFilter'
property :sort, as: 'sort'
property :start_index, as: 'startIndex'
property :start_page, as: 'startPage'
property :title, as: 'title'
property :total_results, :numeric_string => true, as: 'totalResults'
end
end
end
class SearchInformation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_search_time, as: 'formattedSearchTime'
property :formatted_total_results, as: 'formattedTotalResults'
property :search_time, as: 'searchTime'
property :total_results, as: 'totalResults'
end
end
class Spelling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :corrected_query, as: 'correctedQuery'
property :html_corrected_query, as: 'htmlCorrectedQuery'
end
end
class Url
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :template, as: 'template'
property :type, as: 'type'
end
end
end
end
end
end

View File

@ -1,608 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CustomsearchV1
# Custom Search API
#
# Searches over a website or collection of websites
#
# @example
# require 'google/apis/customsearch_v1'
#
# Customsearch = Google::Apis::CustomsearchV1 # Alias the module
# service = Customsearch::CustomsearchService.new
#
# @see https://developers.google.com/custom-search/v1/introduction
class CustomsearchService < 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://customsearch.googleapis.com/', '')
@batch_path = 'batch'
end
# Returns metadata about the search performed, metadata about the custom
# search engine used for the search, and the search results.
# @param [String] c2coff
# Enables or disables [Simplified and Traditional Chinese
# Search](https://developers.google.com/custom-search/docs/xml_results#
# chineseSearch).
# The default value for this parameter is 0 (zero), meaning that the feature
# is enabled. Supported values are:
# * `1`: Disabled
# * `0`: Enabled (default)
# @param [String] cr
# Restricts search results to documents originating in a particular country.
# You may use [Boolean
# operators](https://developers.google.com/custom-search/docs/
# xml_results_appendices#booleanOperators)
# in the cr parameter's value.
# Google Search determines the country of a document by analyzing:
# * the top-level domain (TLD) of the document's URL
# * the geographic location of the Web server's IP address
# See the [Country Parameter
# Values](https://developers.google.com/custom-search/docs/
# xml_results_appendices#countryCollections)
# page for a list of valid values for this parameter.
# @param [String] cx
# The custom search engine ID to use for this request.
# @param [String] date_restrict
# Restricts results to URLs based on date. Supported values include:
# * `d[number]`: requests results from the specified number of past days.
# * `w[number]`: requests results from the specified number of past weeks.
# * `m[number]`: requests results from the specified number of past months.
# * `y[number]`: requests results from the specified number of past years.
# @param [String] exact_terms
# Identifies a phrase that all documents in the search results must contain.
# @param [String] exclude_terms
# Identifies a word or phrase that should not appear in any documents in the
# search results.
# @param [String] file_type
# Restricts results to files of a specified extension. A list of file types
# indexable by Google can be found in Search Console [Help
# Center](https://support.google.com/webmasters/answer/35287).
# @param [String] filter
# Controls turning on or off the duplicate content filter.
# * See [Automatic
# Filtering](https://developers.google.com/custom-search/docs/xml_results#
# automaticFiltering)
# for more information about Google's search results filters. Note that host
# crowding filtering applies only to multi-site searches.
# * By default, Google applies filtering to all search results to improve the
# quality of those results.
# Acceptable values are:
# * `0`: Turns off duplicate content filter.
# * `1`: Turns on duplicate content filter.
# @param [String] gl
# Geolocation of end user.
# * The `gl` parameter value is a two-letter country code. The `gl` parameter
# boosts search results whose country of origin matches the parameter value.
# See the [Country
# Codes](https://developers.google.com/custom-search/docs/xml_results_appendices#
# countryCodes)
# page for a list of valid values.
# * Specifying a `gl` parameter value should lead to more relevant results.
# This is particularly true for international customers and, even more
# specifically, for customers in English- speaking countries other than the
# United States.
# @param [String] googlehost
# **Deprecated**. Use the `gl` parameter for a similar effect.
# The local Google domain (for example, google.com, google.de, or
# google.fr) to use to perform the search.
# @param [String] high_range
# Specifies the ending value for a search range.
# * Use `lowRange` and `highRange` to append an inclusive search range of
# `lowRange...highRange` to the query.
# @param [String] hl
# Sets the user interface language.
# * Explicitly setting this parameter improves the performance and the
# quality of your search results.
# * See the [Interface
# Languages](https://developers.google.com/custom-search/docs/xml_results#
# wsInterfaceLanguages)
# section of [Internationalizing Queries and Results
# Presentation](https://developers.google.com/custom-search/docs/xml_results#
# wsInternationalizing)
# for more information, and (Supported Interface
# Languages)[https://developers.google.com/custom-search/docs/
# xml_results_appendices#interfaceLanguages]
# for a list of supported languages.
# @param [String] hq
# Appends the specified query terms to the query, as if they were combined
# with a logical AND operator.
# @param [String] img_color_type
# Returns black and white, grayscale, transparent, or color images.
# Acceptable values are:
# * `"color"`
# * `"gray"`
# * `"mono"`: black and white
# * `"trans"`: transparent background
# @param [String] img_dominant_color
# Returns images of a specific dominant color. Acceptable values are:
# * `"black"`
# * `"blue"`
# * `"brown"`
# * `"gray"`
# * `"green"`
# * `"orange"`
# * `"pink"`
# * `"purple"`
# * `"red"`
# * `"teal"`
# * `"white"`
# * `"yellow"`
# @param [String] img_size
# Returns images of a specified size. Acceptable values are:
# * `"huge"`
# * `"icon"`
# * `"large"`
# * `"medium"`
# * `"small"`
# * `"xlarge"`
# * `"xxlarge"`
# @param [String] img_type
# Returns images of a type. Acceptable values are:
# * `"clipart"`
# * `"face"`
# * `"lineart"`
# * `"stock"`
# * `"photo"`
# * `"animated"`
# @param [String] link_site
# Specifies that all search results should contain a link to a particular
# URL.
# @param [String] low_range
# Specifies the starting value for a search range. Use `lowRange` and
# `highRange` to append an inclusive search range of `lowRange...highRange`
# to the query.
# @param [String] lr
# Restricts the search to documents written in a particular language (e.g.,
# `lr=lang_ja`).
# Acceptable values are:
# * `"lang_ar"`: Arabic
# * `"lang_bg"`: Bulgarian
# * `"lang_ca"`: Catalan
# * `"lang_cs"`: Czech
# * `"lang_da"`: Danish
# * `"lang_de"`: German
# * `"lang_el"`: Greek
# * `"lang_en"`: English
# * `"lang_es"`: Spanish
# * `"lang_et"`: Estonian
# * `"lang_fi"`: Finnish
# * `"lang_fr"`: French
# * `"lang_hr"`: Croatian
# * `"lang_hu"`: Hungarian
# * `"lang_id"`: Indonesian
# * `"lang_is"`: Icelandic
# * `"lang_it"`: Italian
# * `"lang_iw"`: Hebrew
# * `"lang_ja"`: Japanese
# * `"lang_ko"`: Korean
# * `"lang_lt"`: Lithuanian
# * `"lang_lv"`: Latvian
# * `"lang_nl"`: Dutch
# * `"lang_no"`: Norwegian
# * `"lang_pl"`: Polish
# * `"lang_pt"`: Portuguese
# * `"lang_ro"`: Romanian
# * `"lang_ru"`: Russian
# * `"lang_sk"`: Slovak
# * `"lang_sl"`: Slovenian
# * `"lang_sr"`: Serbian
# * `"lang_sv"`: Swedish
# * `"lang_tr"`: Turkish
# * `"lang_zh-CN"`: Chinese (Simplified)
# * `"lang_zh-TW"`: Chinese (Traditional)
# @param [Fixnum] num
# Number of search results to return.
# * Valid values are integers between 1 and 10, inclusive.
# @param [String] or_terms
# Provides additional search terms to check for in a document, where each
# document in the search results must contain at least one of the additional
# search terms.
# @param [String] q
# Query
# @param [String] related_site
# Specifies that all search results should be pages that are related to the
# specified URL.
# @param [String] rights
# Filters based on licensing. Supported values include: `cc_publicdomain`,
# `cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
# combinations of these. See [typical
# combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).
# @param [String] safe
# Search safety level. Acceptable values are:
# * `"active"`: Enables SafeSearch filtering.
# * `"off"`: Disables SafeSearch filtering. (default)
# @param [String] search_type
# Specifies the search type: `image`. If unspecified, results are limited to
# webpages.
# Acceptable values are:
# * `"image"`: custom image search.
# @param [String] site_search
# Specifies a given site which should always be included or excluded from
# results (see `siteSearchFilter` parameter, below).
# @param [String] site_search_filter
# Controls whether to include or exclude results from the site named in the
# `siteSearch` parameter.
# Acceptable values are:
# * `"e"`: exclude
# * `"i"`: include
# @param [String] sort
# The sort expression to apply to the results.
# @param [Fixnum] start
# The index of the first result to return. The default number of results per
# page is 10, so `&start=11` would start at the top of the second page of
# results. **Note**: The JSON API will never return more than 100 results,
# even if more than 100 documents match the query, so setting the sum of
# `start + num` to a number greater than 100 will produce an error. Also note
# that the maximum value for `num` is 10.
# @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::CustomsearchV1::Search] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CustomsearchV1::Search]
#
# @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_cses(c2coff: nil, cr: nil, cx: nil, date_restrict: nil, exact_terms: nil, exclude_terms: nil, file_type: nil, filter: nil, gl: nil, googlehost: nil, high_range: nil, hl: nil, hq: nil, img_color_type: nil, img_dominant_color: nil, img_size: nil, img_type: nil, link_site: nil, low_range: nil, lr: nil, num: nil, or_terms: nil, q: nil, related_site: nil, rights: nil, safe: nil, search_type: nil, site_search: nil, site_search_filter: nil, sort: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'customsearch/v1', options)
command.response_representation = Google::Apis::CustomsearchV1::Search::Representation
command.response_class = Google::Apis::CustomsearchV1::Search
command.query['c2coff'] = c2coff unless c2coff.nil?
command.query['cr'] = cr unless cr.nil?
command.query['cx'] = cx unless cx.nil?
command.query['dateRestrict'] = date_restrict unless date_restrict.nil?
command.query['exactTerms'] = exact_terms unless exact_terms.nil?
command.query['excludeTerms'] = exclude_terms unless exclude_terms.nil?
command.query['fileType'] = file_type unless file_type.nil?
command.query['filter'] = filter unless filter.nil?
command.query['gl'] = gl unless gl.nil?
command.query['googlehost'] = googlehost unless googlehost.nil?
command.query['highRange'] = high_range unless high_range.nil?
command.query['hl'] = hl unless hl.nil?
command.query['hq'] = hq unless hq.nil?
command.query['imgColorType'] = img_color_type unless img_color_type.nil?
command.query['imgDominantColor'] = img_dominant_color unless img_dominant_color.nil?
command.query['imgSize'] = img_size unless img_size.nil?
command.query['imgType'] = img_type unless img_type.nil?
command.query['linkSite'] = link_site unless link_site.nil?
command.query['lowRange'] = low_range unless low_range.nil?
command.query['lr'] = lr unless lr.nil?
command.query['num'] = num unless num.nil?
command.query['orTerms'] = or_terms unless or_terms.nil?
command.query['q'] = q unless q.nil?
command.query['relatedSite'] = related_site unless related_site.nil?
command.query['rights'] = rights unless rights.nil?
command.query['safe'] = safe unless safe.nil?
command.query['searchType'] = search_type unless search_type.nil?
command.query['siteSearch'] = site_search unless site_search.nil?
command.query['siteSearchFilter'] = site_search_filter unless site_search_filter.nil?
command.query['sort'] = sort unless sort.nil?
command.query['start'] = start unless start.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 metadata about the search performed, metadata about the custom
# search engine used for the search, and the search results. Uses a small set
# of url patterns.
# @param [String] c2coff
# Enables or disables [Simplified and Traditional Chinese
# Search](https://developers.google.com/custom-search/docs/xml_results#
# chineseSearch).
# The default value for this parameter is 0 (zero), meaning that the feature
# is enabled. Supported values are:
# * `1`: Disabled
# * `0`: Enabled (default)
# @param [String] cr
# Restricts search results to documents originating in a particular country.
# You may use [Boolean
# operators](https://developers.google.com/custom-search/docs/
# xml_results_appendices#booleanOperators)
# in the cr parameter's value.
# Google Search determines the country of a document by analyzing:
# * the top-level domain (TLD) of the document's URL
# * the geographic location of the Web server's IP address
# See the [Country Parameter
# Values](https://developers.google.com/custom-search/docs/
# xml_results_appendices#countryCollections)
# page for a list of valid values for this parameter.
# @param [String] cx
# The custom search engine ID to use for this request.
# @param [String] date_restrict
# Restricts results to URLs based on date. Supported values include:
# * `d[number]`: requests results from the specified number of past days.
# * `w[number]`: requests results from the specified number of past weeks.
# * `m[number]`: requests results from the specified number of past months.
# * `y[number]`: requests results from the specified number of past years.
# @param [String] exact_terms
# Identifies a phrase that all documents in the search results must contain.
# @param [String] exclude_terms
# Identifies a word or phrase that should not appear in any documents in the
# search results.
# @param [String] file_type
# Restricts results to files of a specified extension. A list of file types
# indexable by Google can be found in Search Console [Help
# Center](https://support.google.com/webmasters/answer/35287).
# @param [String] filter
# Controls turning on or off the duplicate content filter.
# * See [Automatic
# Filtering](https://developers.google.com/custom-search/docs/xml_results#
# automaticFiltering)
# for more information about Google's search results filters. Note that host
# crowding filtering applies only to multi-site searches.
# * By default, Google applies filtering to all search results to improve the
# quality of those results.
# Acceptable values are:
# * `0`: Turns off duplicate content filter.
# * `1`: Turns on duplicate content filter.
# @param [String] gl
# Geolocation of end user.
# * The `gl` parameter value is a two-letter country code. The `gl` parameter
# boosts search results whose country of origin matches the parameter value.
# See the [Country
# Codes](https://developers.google.com/custom-search/docs/xml_results_appendices#
# countryCodes)
# page for a list of valid values.
# * Specifying a `gl` parameter value should lead to more relevant results.
# This is particularly true for international customers and, even more
# specifically, for customers in English- speaking countries other than the
# United States.
# @param [String] googlehost
# **Deprecated**. Use the `gl` parameter for a similar effect.
# The local Google domain (for example, google.com, google.de, or
# google.fr) to use to perform the search.
# @param [String] high_range
# Specifies the ending value for a search range.
# * Use `lowRange` and `highRange` to append an inclusive search range of
# `lowRange...highRange` to the query.
# @param [String] hl
# Sets the user interface language.
# * Explicitly setting this parameter improves the performance and the
# quality of your search results.
# * See the [Interface
# Languages](https://developers.google.com/custom-search/docs/xml_results#
# wsInterfaceLanguages)
# section of [Internationalizing Queries and Results
# Presentation](https://developers.google.com/custom-search/docs/xml_results#
# wsInternationalizing)
# for more information, and (Supported Interface
# Languages)[https://developers.google.com/custom-search/docs/
# xml_results_appendices#interfaceLanguages]
# for a list of supported languages.
# @param [String] hq
# Appends the specified query terms to the query, as if they were combined
# with a logical AND operator.
# @param [String] img_color_type
# Returns black and white, grayscale, transparent, or color images.
# Acceptable values are:
# * `"color"`
# * `"gray"`
# * `"mono"`: black and white
# * `"trans"`: transparent background
# @param [String] img_dominant_color
# Returns images of a specific dominant color. Acceptable values are:
# * `"black"`
# * `"blue"`
# * `"brown"`
# * `"gray"`
# * `"green"`
# * `"orange"`
# * `"pink"`
# * `"purple"`
# * `"red"`
# * `"teal"`
# * `"white"`
# * `"yellow"`
# @param [String] img_size
# Returns images of a specified size. Acceptable values are:
# * `"huge"`
# * `"icon"`
# * `"large"`
# * `"medium"`
# * `"small"`
# * `"xlarge"`
# * `"xxlarge"`
# @param [String] img_type
# Returns images of a type. Acceptable values are:
# * `"clipart"`
# * `"face"`
# * `"lineart"`
# * `"stock"`
# * `"photo"`
# * `"animated"`
# @param [String] link_site
# Specifies that all search results should contain a link to a particular
# URL.
# @param [String] low_range
# Specifies the starting value for a search range. Use `lowRange` and
# `highRange` to append an inclusive search range of `lowRange...highRange`
# to the query.
# @param [String] lr
# Restricts the search to documents written in a particular language (e.g.,
# `lr=lang_ja`).
# Acceptable values are:
# * `"lang_ar"`: Arabic
# * `"lang_bg"`: Bulgarian
# * `"lang_ca"`: Catalan
# * `"lang_cs"`: Czech
# * `"lang_da"`: Danish
# * `"lang_de"`: German
# * `"lang_el"`: Greek
# * `"lang_en"`: English
# * `"lang_es"`: Spanish
# * `"lang_et"`: Estonian
# * `"lang_fi"`: Finnish
# * `"lang_fr"`: French
# * `"lang_hr"`: Croatian
# * `"lang_hu"`: Hungarian
# * `"lang_id"`: Indonesian
# * `"lang_is"`: Icelandic
# * `"lang_it"`: Italian
# * `"lang_iw"`: Hebrew
# * `"lang_ja"`: Japanese
# * `"lang_ko"`: Korean
# * `"lang_lt"`: Lithuanian
# * `"lang_lv"`: Latvian
# * `"lang_nl"`: Dutch
# * `"lang_no"`: Norwegian
# * `"lang_pl"`: Polish
# * `"lang_pt"`: Portuguese
# * `"lang_ro"`: Romanian
# * `"lang_ru"`: Russian
# * `"lang_sk"`: Slovak
# * `"lang_sl"`: Slovenian
# * `"lang_sr"`: Serbian
# * `"lang_sv"`: Swedish
# * `"lang_tr"`: Turkish
# * `"lang_zh-CN"`: Chinese (Simplified)
# * `"lang_zh-TW"`: Chinese (Traditional)
# @param [Fixnum] num
# Number of search results to return.
# * Valid values are integers between 1 and 10, inclusive.
# @param [String] or_terms
# Provides additional search terms to check for in a document, where each
# document in the search results must contain at least one of the additional
# search terms.
# @param [String] q
# Query
# @param [String] related_site
# Specifies that all search results should be pages that are related to the
# specified URL.
# @param [String] rights
# Filters based on licensing. Supported values include: `cc_publicdomain`,
# `cc_attribute`, `cc_sharealike`, `cc_noncommercial`, `cc_nonderived` and
# combinations of these. See [typical
# combinations](https://wiki.creativecommons.org/wiki/CC_Search_integration).
# @param [String] safe
# Search safety level. Acceptable values are:
# * `"active"`: Enables SafeSearch filtering.
# * `"off"`: Disables SafeSearch filtering. (default)
# @param [String] search_type
# Specifies the search type: `image`. If unspecified, results are limited to
# webpages.
# Acceptable values are:
# * `"image"`: custom image search.
# @param [String] site_search
# Specifies a given site which should always be included or excluded from
# results (see `siteSearchFilter` parameter, below).
# @param [String] site_search_filter
# Controls whether to include or exclude results from the site named in the
# `siteSearch` parameter.
# Acceptable values are:
# * `"e"`: exclude
# * `"i"`: include
# @param [String] sort
# The sort expression to apply to the results.
# @param [Fixnum] start
# The index of the first result to return. The default number of results per
# page is 10, so `&start=11` would start at the top of the second page of
# results. **Note**: The JSON API will never return more than 100 results,
# even if more than 100 documents match the query, so setting the sum of
# `start + num` to a number greater than 100 will produce an error. Also note
# that the maximum value for `num` is 10.
# @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::CustomsearchV1::Search] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CustomsearchV1::Search]
#
# @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_cse_siterestricts(c2coff: nil, cr: nil, cx: nil, date_restrict: nil, exact_terms: nil, exclude_terms: nil, file_type: nil, filter: nil, gl: nil, googlehost: nil, high_range: nil, hl: nil, hq: nil, img_color_type: nil, img_dominant_color: nil, img_size: nil, img_type: nil, link_site: nil, low_range: nil, lr: nil, num: nil, or_terms: nil, q: nil, related_site: nil, rights: nil, safe: nil, search_type: nil, site_search: nil, site_search_filter: nil, sort: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'customsearch/v1/siterestrict', options)
command.response_representation = Google::Apis::CustomsearchV1::Search::Representation
command.response_class = Google::Apis::CustomsearchV1::Search
command.query['c2coff'] = c2coff unless c2coff.nil?
command.query['cr'] = cr unless cr.nil?
command.query['cx'] = cx unless cx.nil?
command.query['dateRestrict'] = date_restrict unless date_restrict.nil?
command.query['exactTerms'] = exact_terms unless exact_terms.nil?
command.query['excludeTerms'] = exclude_terms unless exclude_terms.nil?
command.query['fileType'] = file_type unless file_type.nil?
command.query['filter'] = filter unless filter.nil?
command.query['gl'] = gl unless gl.nil?
command.query['googlehost'] = googlehost unless googlehost.nil?
command.query['highRange'] = high_range unless high_range.nil?
command.query['hl'] = hl unless hl.nil?
command.query['hq'] = hq unless hq.nil?
command.query['imgColorType'] = img_color_type unless img_color_type.nil?
command.query['imgDominantColor'] = img_dominant_color unless img_dominant_color.nil?
command.query['imgSize'] = img_size unless img_size.nil?
command.query['imgType'] = img_type unless img_type.nil?
command.query['linkSite'] = link_site unless link_site.nil?
command.query['lowRange'] = low_range unless low_range.nil?
command.query['lr'] = lr unless lr.nil?
command.query['num'] = num unless num.nil?
command.query['orTerms'] = or_terms unless or_terms.nil?
command.query['q'] = q unless q.nil?
command.query['relatedSite'] = related_site unless related_site.nil?
command.query['rights'] = rights unless rights.nil?
command.query['safe'] = safe unless safe.nil?
command.query['searchType'] = search_type unless search_type.nil?
command.query['siteSearch'] = site_search unless site_search.nil?
command.query['siteSearchFilter'] = site_search_filter unless site_search_filter.nil?
command.query['sort'] = sort unless sort.nil?
command.query['start'] = start unless start.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

View File

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

View File

@ -416,6 +416,11 @@ module Google
# @return [Google::Apis::DataprocV1::EncryptionConfig]
attr_accessor :encryption_config
# Endpoint config for this cluster
# Corresponds to the JSON property `endpointConfig`
# @return [Google::Apis::DataprocV1::EndpointConfig]
attr_accessor :endpoint_config
# Common config settings for resources of Compute Engine cluster instances,
# applicable to all instances in the cluster.
# Corresponds to the JSON property `gceClusterConfig`
@ -464,6 +469,17 @@ module Google
# @return [Google::Apis::DataprocV1::SoftwareConfig]
attr_accessor :software_config
# Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
# such as Spark and MapReduce history files. If you do not specify a temp
# bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or
# EU) for your cluster's temp bucket according to the Compute Engine zone where
# your cluster is deployed, and then create and manage this project-level, per-
# location bucket. The default bucket has a TTL of 90 days, but you can use any
# TTL (or none) if you specify a bucket.
# Corresponds to the JSON property `tempBucket`
# @return [String]
attr_accessor :temp_bucket
# The config settings for Compute Engine resources in an instance group, such as
# a master or worker group.
# Corresponds to the JSON property `workerConfig`
@ -479,6 +495,7 @@ module Google
@autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
@config_bucket = args[:config_bucket] if args.key?(:config_bucket)
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
@endpoint_config = args[:endpoint_config] if args.key?(:endpoint_config)
@gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
@initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
@lifecycle_config = args[:lifecycle_config] if args.key?(:lifecycle_config)
@ -486,6 +503,7 @@ module Google
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
@security_config = args[:security_config] if args.key?(:security_config)
@software_config = args[:software_config] if args.key?(:software_config)
@temp_bucket = args[:temp_bucket] if args.key?(:temp_bucket)
@worker_config = args[:worker_config] if args.key?(:worker_config)
end
end
@ -822,6 +840,34 @@ module Google
end
end
# Endpoint config for this cluster
class EndpointConfig
include Google::Apis::Core::Hashable
# Optional. If true, enable http access to specific ports on the cluster from
# external sources. Defaults to false.
# Corresponds to the JSON property `enableHttpPortAccess`
# @return [Boolean]
attr_accessor :enable_http_port_access
alias_method :enable_http_port_access?, :enable_http_port_access
# Output only. The map of port descriptions to URLs. Will only be populated if
# enable_http_port_access is true.
# Corresponds to the JSON property `httpPorts`
# @return [Hash<String,String>]
attr_accessor :http_ports
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_http_port_access = args[:enable_http_port_access] if args.key?(:enable_http_port_access)
@http_ports = args[:http_ports] if args.key?(:http_ports)
end
end
# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec.Example (Comparison):

View File

@ -142,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EndpointConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -557,6 +563,8 @@ module Google
property :config_bucket, as: 'configBucket'
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::DataprocV1::EncryptionConfig, decorator: Google::Apis::DataprocV1::EncryptionConfig::Representation
property :endpoint_config, as: 'endpointConfig', class: Google::Apis::DataprocV1::EndpointConfig, decorator: Google::Apis::DataprocV1::EndpointConfig::Representation
property :gce_cluster_config, as: 'gceClusterConfig', class: Google::Apis::DataprocV1::GceClusterConfig, decorator: Google::Apis::DataprocV1::GceClusterConfig::Representation
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
@ -571,6 +579,7 @@ module Google
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation
property :temp_bucket, as: 'tempBucket'
property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
end
@ -672,6 +681,14 @@ module Google
end
end
class EndpointConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_http_port_access, as: 'enableHttpPortAccess'
hash :http_ports, as: 'httpPorts'
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -474,6 +474,17 @@ module Google
# @return [Google::Apis::DataprocV1beta2::SoftwareConfig]
attr_accessor :software_config
# Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
# such as Spark and MapReduce history files. If you do not specify a temp
# bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or
# EU) for your cluster's temp bucket according to the Compute Engine zone where
# your cluster is deployed, and then create and manage this project-level, per-
# location bucket. The default bucket has a TTL of 90 days, but you can use any
# TTL (or none) if you specify a bucket.
# Corresponds to the JSON property `tempBucket`
# @return [String]
attr_accessor :temp_bucket
# The config settings for Compute Engine resources in an instance group, such as
# a master or worker group.
# Corresponds to the JSON property `workerConfig`
@ -498,6 +509,7 @@ module Google
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
@security_config = args[:security_config] if args.key?(:security_config)
@software_config = args[:software_config] if args.key?(:software_config)
@temp_bucket = args[:temp_bucket] if args.key?(:temp_bucket)
@worker_config = args[:worker_config] if args.key?(:worker_config)
end
end

View File

@ -605,6 +605,7 @@ module Google
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1beta2::SoftwareConfig, decorator: Google::Apis::DataprocV1beta2::SoftwareConfig::Representation
property :temp_bucket, as: 'tempBucket'
property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1beta2::InstanceGroupConfig, decorator: Google::Apis::DataprocV1beta2::InstanceGroupConfig::Representation
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/cloud-messaging
module FcmV1
VERSION = 'V1'
REVISION = '20200608'
REVISION = '20200615'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -456,6 +456,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java):
# import com.google.type.Color;
# // ...
@ -626,6 +629,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java):
# import com.google.type.Color;
# // ...

View File

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

View File

@ -929,7 +929,7 @@ module Google
# The resource name of the GCP `Project` to which Firebase resources can be
# added, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
@ -1014,8 +1014,8 @@ module Google
attr_accessor :cert_type
# The fully qualified resource name of the `sha-key`, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/sha/<var>
# shaId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var>/sha/
# <var>SHA_ID</var></code>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -1147,11 +1147,12 @@ module Google
# The fully qualified resource name of the Firebase App associated with the
# Google Analytics data stream, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var></
# code>
# or
# <code>projects/<var>projectId</var>/iosApps/<var>appId</var></code>
# <code>projects/<var>PROJECT_NUMBER</var>/iosApps/<var>APP_ID</var></code>
# or
# <code>projects/<var>projectId</var>/webApps/<var>appId</var></code>
# <code>projects/<var>PROJECT_NUMBER</var>/webApps/<var>APP_ID</var></code>
# Corresponds to the JSON property `app`
# @return [String]
attr_accessor :app

View File

@ -138,7 +138,7 @@ module Google
# <br>
# <br>Since a FirebaseProject is actually also a GCP `Project`, a
# `FirebaseProject` uses underlying GCP identifiers (most importantly,
# the `projectId`) as its own for easy interop with GCP APIs.
# the `PROJECT_NUMBER`) as its own for easy interop with GCP APIs.
# <br>
# <br>The result of this call is an [`Operation`](../../v1beta1/operations).
# Poll the `Operation` to track the provisioning process by calling
@ -164,11 +164,11 @@ module Google
# @param [String] project
# The resource name of the GCP `Project` to which Firebase resources will be
# added, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# After calling `AddFirebase`, the
# [`projectId`](https://cloud.google.com/resource-manager/reference/rest/v1/
# [`project_id`](https://cloud.google.com/resource-manager/reference/rest/v1/
# projects#Project.FIELDS.project_id)
# of the GCP `Project` is also the `projectId` of the FirebaseProject.
# of the GCP `Project` is also the `project_id` of the FirebaseProject.
# @param [Google::Apis::FirebaseV1beta1::AddFirebaseRequest] add_firebase_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -255,7 +255,7 @@ module Google
# @param [String] parent
# The parent `FirebaseProject` to link to an existing Google Analytics
# account, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Google::Apis::FirebaseV1beta1::AddGoogleAnalyticsRequest] add_google_analytics_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -289,7 +289,7 @@ module Google
# Gets the FirebaseProject identified by the specified resource name.
# @param [String] name
# The fully qualified resource name of the Project, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -325,7 +325,7 @@ module Google
# command.
# @param [String] name
# The fully qualified resource name of the Project, in the format:
# <br><code>projects/<var>projectId</var>/adminSdkConfig</code>
# <br><code>projects/<var>PROJECT_NUMBER</var>/adminSdkConfig</code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -360,7 +360,7 @@ module Google
# the response to `GetAnalyticsDetails` is NOT_FOUND.
# @param [String] name
# The fully qualified resource name, in the format:
# <br><code>projects/<var>projectId</var>/analyticsDetails</code>
# <br><code>projects/<var>PROJECT_NUMBER</var>/analyticsDetails</code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -505,7 +505,7 @@ module Google
# @param [String] parent
# The parent `FirebaseProject` to unlink from its Google Analytics account,
# in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Google::Apis::FirebaseV1beta1::RemoveAnalyticsRequest] remove_analytics_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -544,7 +544,7 @@ module Google
# known Apps (such as for App selector interfaces).
# @param [String] parent
# The parent Project for which to list Apps, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Fixnum] page_size
# The maximum number of Apps to return in the response.
# <br>
@ -592,7 +592,7 @@ module Google
# completion, so there is no need to call `DeleteOperation`.
# @param [String] parent
# The parent Project in which to create an App, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Google::Apis::FirebaseV1beta1::AndroidApp] android_app_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -626,10 +626,11 @@ module Google
# Gets the AndroidApp identified by the specified resource name.
# @param [String] name
# The fully qualified resource name of the App, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var></
# code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/androidApps/<var>appId</var></code>
# <br><code>projects/-/androidApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -661,11 +662,11 @@ module Google
# AndroidApp.
# @param [String] name
# The resource name of the App configuration to download, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/config</
# code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var>/
# config</code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/androidApps/<var>appId</var></code>
# <br><code>projects/-/androidApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -700,7 +701,7 @@ module Google
# `pageToken`.
# @param [String] parent
# The parent Project for which to list Apps, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Fixnum] page_size
# The maximum number of Apps to return in the response.
# <br>
@ -747,7 +748,7 @@ module Google
# @param [Google::Apis::FirebaseV1beta1::AndroidApp] android_app_object
# @param [String] update_mask
# Specifies which fields to update.
# <br>Note that the fields `name`, `appId`, `projectId`, and `packageName`
# <br>Note that the fields `name`, `app_id`, `project_id`, and `package_name`
# are all immutable.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -782,10 +783,11 @@ module Google
# Adds a SHA certificate to the specified AndroidApp.
# @param [String] parent
# The parent App to which a SHA certificate will be added, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var></
# code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/androidApps/<var>appId</var></code>
# <br><code>projects/-/androidApps/<var>APP_ID</var></code>
# @param [Google::Apis::FirebaseV1beta1::ShaCertificate] sha_certificate_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -819,8 +821,8 @@ module Google
# Removes a SHA certificate from the specified AndroidApp.
# @param [String] name
# The fully qualified resource name of the `sha-key`, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/sha/<var>
# shaId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var>/sha/
# <var>SHA_ID</var></code>
# <br>You can obtain the full name from the response of
# [`ListShaCertificates`](../projects.androidApps.sha/list) or the original
# [`CreateShaCertificate`](../projects.androidApps.sha/create).
@ -855,10 +857,11 @@ module Google
# AndroidApp.
# @param [String] parent
# The parent App for which to list SHA certificates, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var></code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/androidApps/<var>APP_ID</var></
# code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/androidApps/<var>appId</var></code>
# <br><code>projects/-/androidApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -902,15 +905,14 @@ module Google
# policy/defining-locations)
# for the specified Project and, thus, might return a subset of all possible
# GCP resource locations. To list all GCP resource locations (regardless of
# any restrictions), call the endpoint without specifying a `projectId` (that
# is, `/v1beta1/`parent=projects/-`/listAvailableLocations`).
# <br>
# any restrictions), call the endpoint without specifying a `PROJECT_NUMBER`
# (that is, `/v1beta1/`parent=projects/-`/listAvailableLocations`). <br>
# <br>To call `ListAvailableLocations` with a specified project, a member
# must be at minimum a Viewer of the project. Calls without a specified
# project do not require any specific project permissions.
# @param [String] parent
# The Project for which to list GCP resource locations, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# <br>If no project is specified (that is, `projects/-`), the returned list
# does not take into account org-specific or project-specific location
# restrictions.
@ -997,7 +999,7 @@ module Google
# @param [String] parent
# The resource name of the Project for which the default GCP resource
# location will be set, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Google::Apis::FirebaseV1beta1::FinalizeDefaultLocationRequest] finalize_default_location_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1035,7 +1037,7 @@ module Google
# completion, so there is no need to call `DeleteOperation`.
# @param [String] parent
# The parent Project in which to create an App, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Google::Apis::FirebaseV1beta1::IosApp] ios_app_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1069,10 +1071,10 @@ module Google
# Gets the IosApp identified by the specified resource name.
# @param [String] name
# The fully qualified resource name of the App, in the format:
# <code>projects/<var>projectId</var>/iosApps/<var>appId</var></code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <code>projects/<var>PROJECT_NUMBER</var>/iosApps/<var>APP_ID</var></code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/iosApps/<var>appId</var></code>
# <br><code>projects/-/iosApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1103,10 +1105,11 @@ module Google
# Gets the configuration artifact associated with the specified IosApp.
# @param [String] name
# The resource name of the App configuration to download, in the format:
# <br><code>projects/<var>projectId</var>/iosApps/<var>appId</var>/config</code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/iosApps/<var>APP_ID</var>/config</
# code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/iosApps/<var>appId</var></code>
# <br><code>projects/-/iosApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1141,7 +1144,7 @@ module Google
# `pageToken`.
# @param [String] parent
# The parent Project for which to list Apps, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Fixnum] page_size
# The maximum number of Apps to return in the response.
# <br>
@ -1227,7 +1230,7 @@ module Google
# completion, so there is no need to call `DeleteOperation`.
# @param [String] parent
# The parent Project in which to create an App, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Google::Apis::FirebaseV1beta1::WebApp] web_app_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1261,10 +1264,10 @@ module Google
# Gets the WebApp identified by the specified resource name.
# @param [String] name
# The fully qualified resource name of the App, in the format:
# <br><code>projects/<var>projectId</var>/webApps/<var>appId</var></code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/webApps/<var>APP_ID</var></code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/webApps/<var>appId</var></code>
# <br><code>projects/-/webApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1295,10 +1298,11 @@ module Google
# Gets the configuration artifact associated with the specified WebApp.
# @param [String] name
# The resource name of the App configuration to download, in the format:
# <br><code>projects/<var>projectId</var>/webApps/<var>appId</var>/config</code>
# <br>As an <var>appId</var> is a unique identifier, the Unique Resource
# <br><code>projects/<var>PROJECT_NUMBER</var>/webApps/<var>APP_ID</var>/config</
# code>
# <br>As an <var>APP_ID</var> is a unique identifier, the Unique Resource
# from Sub-Collection access pattern may be used here, in the format:
# <br><code>projects/-/webApps/<var>appId</var></code>
# <br><code>projects/-/webApps/<var>APP_ID</var></code>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1333,7 +1337,7 @@ module Google
# `pageToken`.
# @param [String] parent
# The parent Project for which to list Apps, in the format:
# <br><code>projects/<var>projectId</var></code>
# <br><code>projects/<var>PROJECT_NUMBER</var></code>
# @param [Fixnum] page_size
# The maximum number of Apps to return in the response.
# <br>

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/life-sciences
module LifesciencesV2beta
VERSION = 'V2beta'
REVISION = '20200220'
REVISION = '20200603'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1192,6 +1192,15 @@ module Google
# @return [Array<Google::Apis::LifesciencesV2beta::Disk>]
attr_accessor :disks
# The Compute Engine Disk Images to use as a Docker cache. The disks will be
# mounted into the Docker folder in a way that the images present in the
# cache will not need to be pulled. The digests of the cached images must
# match those of the tags used or the latest version will still be pulled.
# Only a single image is supported.
# Corresponds to the JSON property `dockerCacheImages`
# @return [Array<String>]
attr_accessor :docker_cache_images
# Whether Stackdriver monitoring should be enabled on the VM.
# Corresponds to the JSON property `enableStackdriverMonitoring`
# @return [Boolean]
@ -1257,6 +1266,7 @@ module Google
@boot_image = args[:boot_image] if args.key?(:boot_image)
@cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
@disks = args[:disks] if args.key?(:disks)
@docker_cache_images = args[:docker_cache_images] if args.key?(:docker_cache_images)
@enable_stackdriver_monitoring = args[:enable_stackdriver_monitoring] if args.key?(:enable_stackdriver_monitoring)
@labels = args[:labels] if args.key?(:labels)
@machine_type = args[:machine_type] if args.key?(:machine_type)

View File

@ -500,6 +500,7 @@ module Google
property :cpu_platform, as: 'cpuPlatform'
collection :disks, as: 'disks', class: Google::Apis::LifesciencesV2beta::Disk, decorator: Google::Apis::LifesciencesV2beta::Disk::Representation
collection :docker_cache_images, as: 'dockerCacheImages'
property :enable_stackdriver_monitoring, as: 'enableStackdriverMonitoring'
hash :labels, as: 'labels'
property :machine_type, as: 'machineType'

View File

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

View File

@ -2564,6 +2564,15 @@ module Google
# Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's
# existing data unusable.
# The following are specific rules for service defined Monitoring metric
# descriptors:
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
# `launch_stage` fields are all required. The `unit` field must be specified
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
# * Maximum of default 500 metric descriptors per service is allowed.
# * Maximum of default 10 labels per metric descriptor is allowed.
# The default maximum limit can be overridden. Please follow
# https://cloud.google.com/monitoring/quotas
class MetricDescriptor
include Google::Apis::Core::Hashable
@ -2581,7 +2590,13 @@ module Google
attr_accessor :display_name
# The set of labels that can be used to describe a specific
# instance of this metric type. For example, the
# instance of this metric type.
# The label key name must follow:
# * Only upper and lower-case letters, digits and underscores (_) are
# allowed.
# * Label name must start with a letter or digit.
# * The maximum length of a label name is 100 characters.
# For example, the
# `appengine.googleapis.com/http/server/response_latencies` metric
# type has a label for the HTTP response code, `response_code`, so
# you can look at latencies for successful responses or just
@ -2621,9 +2636,19 @@ module Google
attr_accessor :name
# The metric type, including its DNS name prefix. The type is not
# URL-encoded. All user-defined metric types have the DNS name
# `custom.googleapis.com` or `external.googleapis.com`. Metric types should
# use a natural hierarchical grouping. For example:
# URL-encoded.
# All service defined metrics must be prefixed with the service name, in the
# format of ``service name`/`relative metric name``, such as
# `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric
# name must follow:
# * Only upper and lower-case letters, digits, '/' and underscores '_' are
# allowed.
# * The maximum number of characters allowed for the relative_metric_name is
# 100.
# All user-defined metric types have the DNS name
# `custom.googleapis.com`, `external.googleapis.com`, or
# `logging.googleapis.com/user/`.
# Metric types should use a natural hierarchical grouping. For example:
# "custom.googleapis.com/invoice/paid/amount"
# "external.googleapis.com/prometheus/up"
# "appengine.googleapis.com/http/server/response_latencies"
@ -2902,9 +2927,20 @@ module Google
# descriptor for Google Compute Engine VM instances has a type of
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and
# `"zone"` to identify particular VM instances.
# Different APIs can support different monitored resource types. APIs generally
# provide a `list` method that returns the monitored resource descriptors used
# by the API.
# Different services can support different monitored resource types.
# The following are specific rules to service defined monitored resources for
# Monitoring and Logging:
# * The `type`, `display_name`, `description`, `labels` and `launch_stage`
# fields are all required.
# * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`.
# * It must include a `location` label.
# * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow
# https://cloud.google.com/monitoring/quotas
class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable
@ -2923,8 +2959,14 @@ module Google
attr_accessor :display_name
# Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is
# identified by values for the labels `"database_id"` and `"zone"`.
# resource type.
# The label key name must follow:
# * Only upper and lower-case letters, digits and underscores (_) are
# allowed.
# * Label name must start with a letter or digit.
# * The maximum length of a label name is 100 characters.
# For example, an individual Google Cloud SQL database is
# identified by values for the labels `database_id` and `location`.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
attr_accessor :labels
@ -2945,8 +2987,16 @@ module Google
attr_accessor :name
# Required. The monitored resource type. For example, the type
# `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -2971,41 +3021,56 @@ module Google
# for monitoring. In the example, a monitored resource and two metrics are
# defined. The `library.googleapis.com/book/returned_count` metric is sent
# to both producer and consumer projects, whereas the
# `library.googleapis.com/book/overdue_count` metric is only sent to the
# `library.googleapis.com/book/num_overdue` metric is only sent to the
# consumer project.
# monitored_resources:
# - type: library.googleapis.com/branch
# - type: library.googleapis.com/Branch
# display_name: "Library Branch"
# description: "A branch of a library."
# launch_stage: GA
# labels:
# - key: /city
# description: The city where the library branch is located in.
# - key: /name
# description: The name of the branch.
# - key: resource_container
# description: "The Cloud container (ie. project id) for the Branch."
# - key: location
# description: "The location of the library branch."
# - key: branch_id
# description: "The id of the branch."
# metrics:
# - name: library.googleapis.com/book/returned_count
# display_name: "Books Returned"
# description: "The count of books that have been returned."
# launch_stage: GA
# metric_kind: DELTA
# value_type: INT64
# unit: "1"
# labels:
# - key: /customer_id
# - name: library.googleapis.com/book/overdue_count
# - key: customer_id
# description: "The id of the customer."
# - name: library.googleapis.com/book/num_overdue
# display_name: "Books Overdue"
# description: "The current number of overdue books."
# launch_stage: GA
# metric_kind: GAUGE
# value_type: INT64
# unit: "1"
# labels:
# - key: /customer_id
# - key: customer_id
# description: "The id of the customer."
# monitoring:
# producer_destinations:
# - monitored_resource: library.googleapis.com/branch
# - monitored_resource: library.googleapis.com/Branch
# metrics:
# - library.googleapis.com/book/returned_count
# consumer_destinations:
# - monitored_resource: library.googleapis.com/branch
# - monitored_resource: library.googleapis.com/Branch
# metrics:
# - library.googleapis.com/book/returned_count
# - library.googleapis.com/book/overdue_count
# - library.googleapis.com/book/num_overdue
class Monitoring
include Google::Apis::Core::Hashable
# Monitoring configurations for sending metrics to the consumer project.
# There can be multiple consumer destinations. A monitored resouce type may
# There can be multiple consumer destinations. A monitored resource type may
# appear in multiple monitoring destinations if different aggregations are
# needed for different sets of metrics associated with that monitored
# resource type. A monitored resource and metric pair may only be used once
@ -3015,7 +3080,7 @@ module Google
attr_accessor :consumer_destinations
# Monitoring configurations for sending metrics to the producer project.
# There can be multiple producer destinations. A monitored resouce type may
# There can be multiple producer destinations. A monitored resource type may
# appear in multiple monitoring destinations if different aggregations are
# needed for different sets of metrics associated with that monitored
# resource type. A monitored resource and metric pair may only be used once
@ -3963,36 +4028,51 @@ module Google
# for monitoring. In the example, a monitored resource and two metrics are
# defined. The `library.googleapis.com/book/returned_count` metric is sent
# to both producer and consumer projects, whereas the
# `library.googleapis.com/book/overdue_count` metric is only sent to the
# `library.googleapis.com/book/num_overdue` metric is only sent to the
# consumer project.
# monitored_resources:
# - type: library.googleapis.com/branch
# - type: library.googleapis.com/Branch
# display_name: "Library Branch"
# description: "A branch of a library."
# launch_stage: GA
# labels:
# - key: /city
# description: The city where the library branch is located in.
# - key: /name
# description: The name of the branch.
# - key: resource_container
# description: "The Cloud container (ie. project id) for the Branch."
# - key: location
# description: "The location of the library branch."
# - key: branch_id
# description: "The id of the branch."
# metrics:
# - name: library.googleapis.com/book/returned_count
# display_name: "Books Returned"
# description: "The count of books that have been returned."
# launch_stage: GA
# metric_kind: DELTA
# value_type: INT64
# unit: "1"
# labels:
# - key: /customer_id
# - name: library.googleapis.com/book/overdue_count
# - key: customer_id
# description: "The id of the customer."
# - name: library.googleapis.com/book/num_overdue
# display_name: "Books Overdue"
# description: "The current number of overdue books."
# launch_stage: GA
# metric_kind: GAUGE
# value_type: INT64
# unit: "1"
# labels:
# - key: /customer_id
# - key: customer_id
# description: "The id of the customer."
# monitoring:
# producer_destinations:
# - monitored_resource: library.googleapis.com/branch
# - monitored_resource: library.googleapis.com/Branch
# metrics:
# - library.googleapis.com/book/returned_count
# consumer_destinations:
# - monitored_resource: library.googleapis.com/branch
# - monitored_resource: library.googleapis.com/Branch
# metrics:
# - library.googleapis.com/book/returned_count
# - library.googleapis.com/book/overdue_count
# - library.googleapis.com/book/num_overdue
# Corresponds to the JSON property `monitoring`
# @return [Google::Apis::ServicemanagementV1::Monitoring]
attr_accessor :monitoring