google-api-ruby-client/google-api-client/generated/google/apis/recommender_v1beta1/classes.rb

693 lines
28 KiB
Ruby
Raw Normal View History

# 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 RecommenderV1beta1
# Contains metadata about how much money a recommendation can save or incur.
class GoogleCloudRecommenderV1beta1CostProjection
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `cost`
# @return [Google::Apis::RecommenderV1beta1::GoogleTypeMoney]
attr_accessor :cost
# Duration for which this cost applies.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cost = args[:cost] if args.key?(:cost)
@duration = args[:duration] if args.key?(:duration)
end
end
# Contains the impact a recommendation can have for a given category.
class GoogleCloudRecommenderV1beta1Impact
include Google::Apis::Core::Hashable
# Category that is being targeted.
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# Contains metadata about how much money a recommendation can save or incur.
# Corresponds to the JSON property `costProjection`
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection]
attr_accessor :cost_projection
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@cost_projection = args[:cost_projection] if args.key?(:cost_projection)
end
end
# An insight along with the information used to derive the insight. The insight
# may have associated recomendations as well.
class GoogleCloudRecommenderV1beta1Insight
include Google::Apis::Core::Hashable
# Recommendations derived from this insight.
# Corresponds to the JSON property `associatedRecommendations`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightRecommendationReference>]
attr_accessor :associated_recommendations
# Category being targeted by the insight.
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# A struct of custom fields to explain the insight. Example: "
# grantedPermissionsCount": "1000"
# Corresponds to the JSON property `content`
# @return [Hash<String,Object>]
attr_accessor :content
# Free-form human readable summary in English. The maximum length is 500
# characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Fingerprint of the Insight. Provides optimistic locking when updating states.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Insight subtype. Insight content schema will be stable for a given subtype.
# Corresponds to the JSON property `insightSubtype`
# @return [String]
attr_accessor :insight_subtype
# Timestamp of the latest data used to generate the insight.
# Corresponds to the JSON property `lastRefreshTime`
# @return [String]
attr_accessor :last_refresh_time
# Name of the insight.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Observation period that led to the insight. The source data used to generate
# the insight ends at last_refresh_time and begins at (last_refresh_time -
# observation_period).
# Corresponds to the JSON property `observationPeriod`
# @return [String]
attr_accessor :observation_period
# Information related to insight state.
# Corresponds to the JSON property `stateInfo`
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo]
attr_accessor :state_info
# Fully qualified resource names that this insight is targeting.
# Corresponds to the JSON property `targetResources`
# @return [Array<String>]
attr_accessor :target_resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@associated_recommendations = args[:associated_recommendations] if args.key?(:associated_recommendations)
@category = args[:category] if args.key?(:category)
@content = args[:content] if args.key?(:content)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@insight_subtype = args[:insight_subtype] if args.key?(:insight_subtype)
@last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
@name = args[:name] if args.key?(:name)
@observation_period = args[:observation_period] if args.key?(:observation_period)
@state_info = args[:state_info] if args.key?(:state_info)
@target_resources = args[:target_resources] if args.key?(:target_resources)
end
end
# Reference to an associated recommendation.
class GoogleCloudRecommenderV1beta1InsightRecommendationReference
include Google::Apis::Core::Hashable
# Recommendation resource name, e.g. projects/[PROJECT_NUMBER]/locations/[
# LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]
# Corresponds to the JSON property `recommendation`
# @return [String]
attr_accessor :recommendation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@recommendation = args[:recommendation] if args.key?(:recommendation)
end
end
# Information related to insight state.
class GoogleCloudRecommenderV1beta1InsightStateInfo
include Google::Apis::Core::Hashable
# Insight state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A map of metadata for the state, provided by user or automations systems.
# Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>]
attr_accessor :state_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end
end
# Response to the `ListInsights` method.
class GoogleCloudRecommenderV1beta1ListInsightsResponse
include Google::Apis::Core::Hashable
# The set of insights for the `parent` resource.
# Corresponds to the JSON property `insights`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Insight>]
attr_accessor :insights
# A token that can be used to request the next page of results. This field is
# empty if there are no additional results.
# 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)
@insights = args[:insights] if args.key?(:insights)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response to the `ListRecommendations` method.
class GoogleCloudRecommenderV1beta1ListRecommendationsResponse
include Google::Apis::Core::Hashable
# A token that can be used to request the next page of results. This field is
# empty if there are no additional results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The set of recommendations for the `parent` resource.
# Corresponds to the JSON property `recommendations`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Recommendation>]
attr_accessor :recommendations
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)
@recommendations = args[:recommendations] if args.key?(:recommendations)
end
end
# Request for the `MarkInsightAccepted` method.
class GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest
include Google::Apis::Core::Hashable
# Required. Fingerprint of the Insight. Provides optimistic locking.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Optional. State properties user wish to include with this state. Full replace
# of the current state_metadata.
# Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>]
attr_accessor :state_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end
end
# Request for the `MarkRecommendationClaimed` Method.
class GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest
include Google::Apis::Core::Hashable
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# State properties to include with this state. Overwrites any existing `
# state_metadata`. Keys must match the regex /^a-z0-9`0,62`$/. Values must match
# the regex /^[a-zA-Z0-9_./-]`0,255`$/.
# Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>]
attr_accessor :state_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end
end
# Request for the `MarkRecommendationFailed` Method.
class GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest
include Google::Apis::Core::Hashable
Autogenerated update (2020-04-13) Delete: - cloudprivatecatalog_v1beta1 - cloudprivatecatalogproducer_v1beta1 - mirror_v1 - oauth2_v1 - proximitybeacon_v1beta1 Update: - accesscontextmanager_v1 - accesscontextmanager_v1beta - adexchangebuyer2_v2beta1 - admin_directory_v1 - adsense_v1_4 - adsensehost_v4_1 - alertcenter_v1beta1 - androiddeviceprovisioning_v1 - androidenterprise_v1 - androidmanagement_v1 - androidpublisher_v2 - androidpublisher_v3 - appengine_v1 - appengine_v1alpha - appengine_v1beta - bigquery_v2 - bigquerydatatransfer_v1 - bigqueryreservation_v1 - bigqueryreservation_v1beta1 - bigtableadmin_v1 - bigtableadmin_v2 - billingbudgets_v1beta1 - blogger_v2 - blogger_v3 - calendar_v3 - chat_v1 - cloudasset_v1 - cloudbuild_v1 - cloudbuild_v1alpha1 - cloudbuild_v1alpha2 - clouddebugger_v2 - cloudidentity_v1 - cloudidentity_v1beta1 - cloudresourcemanager_v1 - cloudsearch_v1 - cloudshell_v1 - cloudshell_v1alpha1 - cloudtasks_v2beta2 - cloudtrace_v1 - cloudtrace_v2 - cloudtrace_v2beta1 - composer_v1 - composer_v1beta1 - compute_alpha - compute_beta - compute_v1 - container_v1 - container_v1beta1 - content_v2 - content_v2_1 - customsearch_v1 - datacatalog_v1beta1 - dataflow_v1b3 - datafusion_v1beta1 - dataproc_v1 - dataproc_v1beta2 - dfareporting_v3_3 - dfareporting_v3_4 - dialogflow_v2 - dialogflow_v2beta1 - dlp_v2 - doubleclickbidmanager_v1_1 - doubleclicksearch_v2 - drive_v2 - drive_v3 - file_v1 - file_v1beta1 - firebase_v1beta1 - firebasehosting_v1beta1 - firestore_v1 - firestore_v1beta1 - games_configuration_v1configuration - games_management_v1management - games_v1 - genomics_v2alpha1 - gmail_v1 - healthcare_v1beta1 - homegraph_v1 - iap_v1 - jobs_v2 - language_v1 - language_v1beta1 - language_v1beta2 - logging_v2 - managedidentities_v1 - managedidentities_v1alpha1 - managedidentities_v1beta1 - manufacturers_v1 - ml_v1 - monitoring_v1 - monitoring_v3 - oauth2_v2 - osconfig_v1beta - people_v1 - prod_tt_sasportal_v1alpha1 - pubsub_v1 - pubsub_v1beta2 - recommender_v1beta1 - redis_v1 - redis_v1beta1 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - run_v1 - sasportal_v1alpha1 - secretmanager_v1 - secretmanager_v1beta1 - securitycenter_v1 - securitycenter_v1beta1 - securitycenter_v1p1alpha1 - securitycenter_v1p1beta1 - serviceconsumermanagement_v1 - servicecontrol_v1 - servicemanagement_v1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - sheets_v4 - spanner_v1 - speech_v1 - speech_v1p1beta1 - speech_v2beta1 - sql_v1beta4 - storage_v1 - storagetransfer_v1 - toolresults_v1beta3 - vault_v1 - videointelligence_v1 - videointelligence_v1beta2 - videointelligence_v1p1beta1 - videointelligence_v1p2beta1 - videointelligence_v1p3beta1 - vision_v1 - vision_v1p1beta1 - vision_v1p2beta1 - youtube_partner_v1 - youtube_v3
2020-04-13 16:49:10 +00:00
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# State properties to include with this state. Overwrites any existing `
# state_metadata`. Keys must match the regex /^a-z0-9`0,62`$/. Values must match
# the regex /^[a-zA-Z0-9_./-]`0,255`$/.
# Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>]
attr_accessor :state_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end
end
# Request for the `MarkRecommendationSucceeded` Method.
class GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest
include Google::Apis::Core::Hashable
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# State properties to include with this state. Overwrites any existing `
# state_metadata`. Keys must match the regex /^a-z0-9`0,62`$/. Values must match
# the regex /^[a-zA-Z0-9_./-]`0,255`$/.
# Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>]
attr_accessor :state_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end
end
# Contains an operation for a resource loosely based on the JSON-PATCH format
# with support for: * Custom filters for describing partial array patch. *
# Extended path values for describing nested arrays. * Custom fields for
# describing the resource for which the operation is being described. * Allows
# extension to custom operations not natively supported by RFC6902. See https://
# tools.ietf.org/html/rfc6902 for details on the original RFC.
class GoogleCloudRecommenderV1beta1Operation
include Google::Apis::Core::Hashable
# Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', '
# copy', 'test' and 'custom' operations. This field is case-insensitive and
# always populated.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Path to the target field being operated on. If the operation is at the
# resource level, then path should be "/". This field is always populated.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# Set of filters to apply if `path` refers to array elements or nested array
# elements in order to narrow down to a single unique element that is being
# tested/modified. This is intended to be an exact match per filter. To perform
# advanced matching, use path_value_matchers. * Example: ` "/versions/*/name" : "
# it-123" "/versions/*/targetSize/percent": 20 ` * Example: ` "/bindings/*/role":
feat: Automated regeneration of recommender v1beta1 client (#1555) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2020-11-18 03:15:51,521 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-recommender-v1beta1 nothing to commit, working tree clean 2020-11-18 03:15:51,558 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth recommender v1beta1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth recommender v1beta1 bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.8 Installing tzinfo 1.2.8 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.50.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.0 Installing rspec-support 3.10.0 Fetching rspec-core 3.10.0 Installing rspec-core 3.10.0 Fetching rspec-expectations 3.10.0 Installing rspec-expectations 3.10.0 Fetching rspec-mocks 3.10.0 Installing rspec-mocks 3.10.0 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.0 Installing parallel 1.20.0 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=recommender.v1beta1 --names-out=/workspace/api_names_out.yaml Loading recommender, version v1beta1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/recommender.v1beta1.json conflict google/apis/recommender_v1beta1.rb <mmender_v1beta1.rb? (enter "h" for help) [Ynaqdhm] a force google/apis/recommender_v1beta1.rb identical google/apis/recommender_v1beta1/service.rb conflict google/apis/recommender_v1beta1/classes.rb force google/apis/recommender_v1beta1/classes.rb identical google/apis/recommender_v1beta1/representations.rb identical /workspace/api_names_out.yaml 2020-11-18 03:16:20,280 synthtool [DEBUG] > Wrote metadata to generated/google/apis/recommender_v1beta1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/recommender_v1beta1/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/46de5065-4bef-4d95-baaf-b20b1aa60d5d/targets - [ ] To automatically regenerate this PR, check this box.
2020-11-18 11:34:04 +00:00
# "roles/owner" "/bindings/*/condition" : null ` * Example: ` "/bindings/*/role"
# : "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] `
# When both path_filters and path_value_matchers are set, an implicit AND must
# be performed.
# Corresponds to the JSON property `pathFilters`
# @return [Hash<String,Object>]
attr_accessor :path_filters
# Similar to path_filters, this contains set of filters to apply if `path` field
# referes to array elements. This is meant to support value matching beyond
# exact match. To perform exact match, use path_filters. When both path_filters
# and path_value_matchers are set, an implicit AND must be performed.
# Corresponds to the JSON property `pathValueMatchers`
# @return [Hash<String,Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ValueMatcher>]
attr_accessor :path_value_matchers
# Contains the fully qualified resource name. This field is always populated. ex:
# //cloudresourcemanager.googleapis.com/projects/foo.
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
# Type of GCP resource being modified/tested. This field is always populated.
# Example: cloudresourcemanager.googleapis.com/Project, compute.googleapis.com/
# Instance
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
# Can be set with action 'copy' or 'move' to indicate the source field within
# resource or source_resource, ignored if provided for other operation types.
# Corresponds to the JSON property `sourcePath`
# @return [String]
attr_accessor :source_path
# Can be set with action 'copy' to copy resource configuration across different
# resources of the same type. Example: A resource clone can be done via action =
# 'copy', path = "/", from = "/", source_resource = and resource_name = . This
# field is empty for all other values of `action`.
# Corresponds to the JSON property `sourceResource`
# @return [String]
attr_accessor :source_resource
# Value for the `path` field. Will be set for actions:'add'/'replace'. Maybe set
# for action: 'test'. Either this or `value_matcher` will be set for 'test'
# operation. An exact match must be performed.
# Corresponds to the JSON property `value`
# @return [Object]
attr_accessor :value
# Contains various matching options for values for a GCP resource field.
# Corresponds to the JSON property `valueMatcher`
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1ValueMatcher]
attr_accessor :value_matcher
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@path = args[:path] if args.key?(:path)
@path_filters = args[:path_filters] if args.key?(:path_filters)
@path_value_matchers = args[:path_value_matchers] if args.key?(:path_value_matchers)
@resource = args[:resource] if args.key?(:resource)
@resource_type = args[:resource_type] if args.key?(:resource_type)
@source_path = args[:source_path] if args.key?(:source_path)
@source_resource = args[:source_resource] if args.key?(:source_resource)
@value = args[:value] if args.key?(:value)
@value_matcher = args[:value_matcher] if args.key?(:value_matcher)
end
end
# Group of operations that need to be performed atomically.
class GoogleCloudRecommenderV1beta1OperationGroup
include Google::Apis::Core::Hashable
# List of operations across one or more resources that belong to this group.
# Loosely based on RFC6902 and should be performed in the order they appear.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Operation>]
attr_accessor :operations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operations = args[:operations] if args.key?(:operations)
end
end
# A recommendation along with a suggested action. E.g., a rightsizing
# recommendation for an underutilized VM, IAM role recommendations, etc
class GoogleCloudRecommenderV1beta1Recommendation
include Google::Apis::Core::Hashable
# Optional set of additional impact that this recommendation may have when
# trying to optimize for the primary category. These may be positive or negative.
# Corresponds to the JSON property `additionalImpact`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact>]
attr_accessor :additional_impact
# Insights that led to this recommendation.
# Corresponds to the JSON property `associatedInsights`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationInsightReference>]
attr_accessor :associated_insights
# Contains what resources are changing and how they are changing.
# Corresponds to the JSON property `content`
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationContent]
attr_accessor :content
# Free-form human readable summary in English. The maximum length is 500
# characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Fingerprint of the Recommendation. Provides optimistic locking when updating
# states.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Last time this recommendation was refreshed by the system that created it in
# the first place.
# Corresponds to the JSON property `lastRefreshTime`
# @return [String]
attr_accessor :last_refresh_time
# Name of recommendation.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Contains the impact a recommendation can have for a given category.
# Corresponds to the JSON property `primaryImpact`
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Impact]
attr_accessor :primary_impact
# Contains an identifier for a subtype of recommendations produced for the same
# recommender. Subtype is a function of content and impact, meaning a new
# subtype might be added when significant changes to `content` or `
# primary_impact.category` are introduced. See the Recommenders section to see a
# list of subtypes for a given Recommender. Examples: For recommender = "google.
# iam.policy.Recommender", recommender_subtype can be one of "REMOVE_ROLE"/"
# REPLACE_ROLE"
# Corresponds to the JSON property `recommenderSubtype`
# @return [String]
attr_accessor :recommender_subtype
# Information for state. Contains state and metadata.
# Corresponds to the JSON property `stateInfo`
# @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1RecommendationStateInfo]
attr_accessor :state_info
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_impact = args[:additional_impact] if args.key?(:additional_impact)
@associated_insights = args[:associated_insights] if args.key?(:associated_insights)
@content = args[:content] if args.key?(:content)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
@name = args[:name] if args.key?(:name)
@primary_impact = args[:primary_impact] if args.key?(:primary_impact)
@recommender_subtype = args[:recommender_subtype] if args.key?(:recommender_subtype)
@state_info = args[:state_info] if args.key?(:state_info)
end
end
# Contains what resources are changing and how they are changing.
class GoogleCloudRecommenderV1beta1RecommendationContent
include Google::Apis::Core::Hashable
# Operations to one or more Google Cloud resources grouped in such a way that,
# all operations within one group are expected to be performed atomically and in
# an order.
# Corresponds to the JSON property `operationGroups`
# @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1OperationGroup>]
attr_accessor :operation_groups
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operation_groups = args[:operation_groups] if args.key?(:operation_groups)
end
end
# Reference to an associated insight.
class GoogleCloudRecommenderV1beta1RecommendationInsightReference
include Google::Apis::Core::Hashable
# Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/
# insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
# Corresponds to the JSON property `insight`
# @return [String]
attr_accessor :insight
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@insight = args[:insight] if args.key?(:insight)
end
end
# Information for state. Contains state and metadata.
class GoogleCloudRecommenderV1beta1RecommendationStateInfo
include Google::Apis::Core::Hashable
# The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A map of metadata for the state, provided by user or automations systems.
# Corresponds to the JSON property `stateMetadata`
# @return [Hash<String,String>]
attr_accessor :state_metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
@state_metadata = args[:state_metadata] if args.key?(:state_metadata)
end
end
# Contains various matching options for values for a GCP resource field.
class GoogleCloudRecommenderV1beta1ValueMatcher
include Google::Apis::Core::Hashable
# To be used for full regex matching. The regular expression is using the Google
# RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2:
# :FullMatch
# Corresponds to the JSON property `matchesPattern`
# @return [String]
attr_accessor :matches_pattern
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@matches_pattern = args[:matches_pattern] if args.key?(:matches_pattern)
end
end
# Represents an amount of money with its currency type.
class GoogleTypeMoney
include Google::Apis::Core::Hashable
# The three-letter currency code defined in ISO 4217.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
# negative. If `units` is negative, `nanos` must be negative or zero. For
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
# 1 unit is one US dollar.
# Corresponds to the JSON property `units`
# @return [Fixnum]
attr_accessor :units
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@nanos = args[:nanos] if args.key?(:nanos)
@units = args[:units] if args.key?(:units)
end
end
end
end
end