diff --git a/generated/google/apis/accesscontextmanager_v1beta.rb b/generated/google/apis/accesscontextmanager_v1beta.rb index d6de65b1b..1177f0975 100644 --- a/generated/google/apis/accesscontextmanager_v1beta.rb +++ b/generated/google/apis/accesscontextmanager_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1beta VERSION = 'V1beta' - REVISION = '20200120' + REVISION = '20200128' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/accesscontextmanager_v1beta/classes.rb b/generated/google/apis/accesscontextmanager_v1beta/classes.rb index eebacb0ac..af374267e 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/classes.rb @@ -699,8 +699,15 @@ module Google # @return [Array] attr_accessor :unrestricted_services + # Specifies how APIs are allowed to communicate within the Service + # Perimeter. + # Corresponds to the JSON property `vpcAccessibleServices` + # @return [Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices] + attr_accessor :vpc_accessible_services + # Alpha. Specifies how APIs are allowed to communicate within the Service # Perimeter. + # This message is DEPRECATED and had been renamed to VpcAccessibleServices # Corresponds to the JSON property `vpcServiceRestriction` # @return [Google::Apis::AccesscontextmanagerV1beta::VpcServiceRestriction] attr_accessor :vpc_service_restriction @@ -715,6 +722,7 @@ module Google @resources = args[:resources] if args.key?(:resources) @restricted_services = args[:restricted_services] if args.key?(:restricted_services) @unrestricted_services = args[:unrestricted_services] if args.key?(:unrestricted_services) + @vpc_accessible_services = args[:vpc_accessible_services] if args.key?(:vpc_accessible_services) @vpc_service_restriction = args[:vpc_service_restriction] if args.key?(:vpc_service_restriction) end end @@ -758,8 +766,38 @@ module Google end end + # Specifies how APIs are allowed to communicate within the Service + # Perimeter. + class VpcAccessibleServices + include Google::Apis::Core::Hashable + + # The list of APIs usable within the Service Perimeter. Must be empty + # unless 'enable_restriction' is True. + # Corresponds to the JSON property `allowedServices` + # @return [Array] + attr_accessor :allowed_services + + # Whether to restrict API calls within the Service Perimeter to the list of + # APIs specified in 'allowed_services'. + # Corresponds to the JSON property `enableRestriction` + # @return [Boolean] + attr_accessor :enable_restriction + alias_method :enable_restriction?, :enable_restriction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_services = args[:allowed_services] if args.key?(:allowed_services) + @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) + end + end + # Alpha. Specifies how APIs are allowed to communicate within the Service # Perimeter. + # This message is DEPRECATED and had been renamed to VpcAccessibleServices class VpcServiceRestriction include Google::Apis::Core::Hashable diff --git a/generated/google/apis/accesscontextmanager_v1beta/representations.rb b/generated/google/apis/accesscontextmanager_v1beta/representations.rb index 24ff28d9d..590763ada 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/representations.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VpcAccessibleServices + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VpcServiceRestriction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -266,6 +272,8 @@ module Google collection :resources, as: 'resources' collection :restricted_services, as: 'restrictedServices' collection :unrestricted_services, as: 'unrestrictedServices' + property :vpc_accessible_services, as: 'vpcAccessibleServices', class: Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices, decorator: Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices::Representation + property :vpc_service_restriction, as: 'vpcServiceRestriction', class: Google::Apis::AccesscontextmanagerV1beta::VpcServiceRestriction, decorator: Google::Apis::AccesscontextmanagerV1beta::VpcServiceRestriction::Representation end @@ -280,6 +288,14 @@ module Google end end + class VpcAccessibleServices + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_services, as: 'allowedServices' + property :enable_restriction, as: 'enableRestriction' + end + end + class VpcServiceRestriction # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index aaa5c68a1..520642ab7 100644 --- a/generated/google/apis/androidpublisher_v3.rb +++ b/generated/google/apis/androidpublisher_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV3 VERSION = 'V3' - REVISION = '20200115' + REVISION = '20200126' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb index b653d4612..f08f9da8b 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -1630,6 +1630,12 @@ module Google # @return [Fixnum] attr_accessor :expiry_time_millis + # User account identifier in the third-party service. Only present if account + # linking happened as part of the subscription purchase flow. + # Corresponds to the JSON property `externalAccountId` + # @return [String] + attr_accessor :external_account_id + # The family name of the user when the subscription was purchased. Only present # for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `familyName` @@ -1766,6 +1772,7 @@ module Google @developer_payload = args[:developer_payload] if args.key?(:developer_payload) @email_address = args[:email_address] if args.key?(:email_address) @expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis) + @external_account_id = args[:external_account_id] if args.key?(:external_account_id) @family_name = args[:family_name] if args.key?(:family_name) @given_name = args[:given_name] if args.key?(:given_name) @introductory_price_info = args[:introductory_price_info] if args.key?(:introductory_price_info) @@ -1992,6 +1999,14 @@ module Google # @return [Google::Apis::AndroidpublisherV3::CountryTargeting] attr_accessor :country_targeting + # In-app update priority of the release. All newly added APKs in the release + # will be considered at this priority. in_app_update_priority can take values + # between [0, 5]. 5 is the highest priority. Default priority is 0. See https:// + # developer.android.com/guide/playcore/in-app-updates. + # Corresponds to the JSON property `inAppUpdatePriority` + # @return [Fixnum] + attr_accessor :in_app_update_priority + # The release name, used to identify this release in the Play Console UI. Not # required to be unique. This is optional, if not set it will be generated from # the version_name in the APKs. @@ -2036,6 +2051,7 @@ module Google def update!(**args) @controls = args[:controls] if args.key?(:controls) @country_targeting = args[:country_targeting] if args.key?(:country_targeting) + @in_app_update_priority = args[:in_app_update_priority] if args.key?(:in_app_update_priority) @name = args[:name] if args.key?(:name) @release_notes = args[:release_notes] if args.key?(:release_notes) @sampling = args[:sampling] if args.key?(:sampling) diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb index 60f730332..ecab2ecac 100644 --- a/generated/google/apis/androidpublisher_v3/representations.rb +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -866,6 +866,7 @@ module Google property :developer_payload, as: 'developerPayload' property :email_address, as: 'emailAddress' property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis' + property :external_account_id, as: 'externalAccountId' property :family_name, as: 'familyName' property :given_name, as: 'givenName' property :introductory_price_info, as: 'introductoryPriceInfo', class: Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo, decorator: Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo::Representation @@ -965,6 +966,7 @@ module Google property :country_targeting, as: 'countryTargeting', class: Google::Apis::AndroidpublisherV3::CountryTargeting, decorator: Google::Apis::AndroidpublisherV3::CountryTargeting::Representation + property :in_app_update_priority, as: 'inAppUpdatePriority' property :name, as: 'name' collection :release_notes, as: 'releaseNotes', class: Google::Apis::AndroidpublisherV3::LocalizedText, decorator: Google::Apis::AndroidpublisherV3::LocalizedText::Representation diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index 4149240f3..ac299d048 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20200116' + REVISION = '20200127' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index 6945ac980..61c36f2b8 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -142,10 +142,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # 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): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudfunctionsV1::Expr] attr_accessor :condition @@ -509,34 +527,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # 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): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 09068ddc2..4bf6c9f25 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20200104' + REVISION = '20200106' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index d0a84b0e2..7e23a5f4c 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -9058,6 +9058,17 @@ module Google # @return [String] attr_accessor :description + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a HealthCheckService. An up-to-date fingerprint must be provided in + # order to patch/update the HealthCheckService; Otherwise, the request will fail + # with error 412 conditionNotMet. To see the latest fingerprint, make a get() + # request to retrieve the HealthCheckService. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + # List of URLs to the HealthCheck resources. Must have at least one HealthCheck, # and not more than 10. HealthCheck resources must have portSpecification= # USE_SERVING_PORT. For regional HealthCheckService, the HealthCheck must be @@ -9155,6 +9166,7 @@ module Google def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @health_checks = args[:health_checks] if args.key?(:health_checks) @health_status_aggregation_policy = args[:health_status_aggregation_policy] if args.key?(:health_status_aggregation_policy) @health_status_aggregation_strategy = args[:health_status_aggregation_strategy] if args.key?(:health_status_aggregation_strategy) diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 4d23c1a35..e2162e5d6 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -7363,6 +7363,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' collection :health_checks, as: 'healthChecks' property :health_status_aggregation_policy, as: 'healthStatusAggregationPolicy' property :health_status_aggregation_strategy, as: 'healthStatusAggregationStrategy' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 2df1eee34..d016ca870 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -21891,6 +21891,63 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified regional HealthCheckService resource with the data + # included in the request. This method supports PATCH semantics and uses the + # JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] health_check_service + # Name of the HealthCheckService to update. The name must be 1-63 characters + # long, and comply with RFC1035. + # @param [Google::Apis::ComputeAlpha::HealthCheckService] health_check_service_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_region_health_check_service(project, region, health_check_service, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation + command.request_object = health_check_service_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['healthCheckService'] = health_check_service unless health_check_service.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 9ed8a6763..e56071161 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200110' + REVISION = '20200117' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index d44f4d39e..c3cb00faa 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -1009,6 +1009,38 @@ module Google end end + # + class AccountsListLinksResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsListLinksResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The list of available links. + # Corresponds to the JSON property `links` + # @return [Array] + attr_accessor :links + + # The token for the retrieval of the next page of links. + # 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) + @kind = args[:kind] if args.key?(:kind) + @links = args[:links] if args.key?(:links) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # class AccountsListResponse include Google::Apis::Core::Hashable @@ -3275,6 +3307,56 @@ module Google end end + # + class LinkService + include Google::Apis::Core::Hashable + + # Service provided to or by the linked account. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # Status of the link + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service = args[:service] if args.key?(:service) + @status = args[:status] if args.key?(:status) + end + end + + # + class LinkedAccount + include Google::Apis::Core::Hashable + + # The ID of the linked account. + # Corresponds to the JSON property `linkedAccountId` + # @return [String] + attr_accessor :linked_account_id + + # List of provided services. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id) + @services = args[:services] if args.key?(:services) + end + end + # class LocationIdSet include Google::Apis::Core::Hashable diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 59e840872..7eeca4d9d 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -172,6 +172,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccountsListLinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountsListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -556,6 +562,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LinkService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LinkedAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LocationIdSet class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1796,6 +1814,16 @@ module Google end end + class AccountsListLinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :links, as: 'links', class: Google::Apis::ContentV2_1::LinkedAccount, decorator: Google::Apis::ContentV2_1::LinkedAccount::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class AccountsListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2461,6 +2489,23 @@ module Google end end + class LinkService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service' + property :status, as: 'status' + end + end + + class LinkedAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :linked_account_id, as: 'linkedAccountId' + collection :services, as: 'services', class: Google::Apis::ContentV2_1::LinkService, decorator: Google::Apis::ContentV2_1::LinkService::Representation + + end + end + class LocationIdSet # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index bb5fd30e4..2a56cc5d5 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -352,6 +352,50 @@ module Google execute_or_queue_command(command, &block) end + # Returns the list of accounts linked to your Merchant Center account. + # @param [Fixnum] merchant_id + # The ID of the managing account. If this parameter is not the same as accountId, + # then this account must be a multi-client account and accountId must be the ID + # of a sub-account of this account. + # @param [Fixnum] account_id + # The ID of the account for which to list links. + # @param [Fixnum] max_results + # The maximum number of links to return in the response, used for pagination. + # @param [String] page_token + # The token returned by the previous request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountsListLinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsListLinksResponse] + # + # @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 listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{merchantId}/accounts/{accountId}/listlinks', options) + command.response_representation = Google::Apis::ContentV2_1::AccountsListLinksResponse::Representation + command.response_class = Google::Apis::ContentV2_1::AccountsListLinksResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['accountId'] = account_id unless account_id.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates a Merchant Center account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index f29511e55..00c69259c 100644 --- a/generated/google/apis/fitness_v1.rb +++ b/generated/google/apis/fitness_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/fit/rest/ module FitnessV1 VERSION = 'V1' - REVISION = '20200111' + REVISION = '20200119' # Use Google Fit to see and store your physical activity data AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' diff --git a/generated/google/apis/fitness_v1/classes.rb b/generated/google/apis/fitness_v1/classes.rb index 5d82cd25a..ed981c777 100644 --- a/generated/google/apis/fitness_v1/classes.rb +++ b/generated/google/apis/fitness_v1/classes.rb @@ -479,9 +479,11 @@ module Google # When any of the optional fields that make up the data stream ID are absent, # they will be omitted from the data stream ID. The minimum viable data stream # ID would be: type:dataType.name:developer project number - # Finally, the developer project number is obfuscated when read by any REST or - # Android client that did not create the data source. Only the data source - # creator will see the developer project number in clear and normal form. + # Finally, the developer project number and device UID are obfuscated when read + # by any REST or Android client that did not create the data source. Only the + # data source creator will see the developer project number in clear and normal + # form. This means a client will see a different set of data_stream_ids than + # another client with different credentials. # Corresponds to the JSON property `dataStreamId` # @return [String] attr_accessor :data_stream_id @@ -695,6 +697,8 @@ module Google # obfuscated when read by any REST or Android client that did not create the # data source. Only the data source creator will see the uid field in clear and # normal form. + # The obfuscation preserves equality; that is, given two IDs, if id1 == id2, + # obfuscated(id1) == obfuscated(id2). # Corresponds to the JSON property `uid` # @return [String] attr_accessor :uid @@ -912,7 +916,7 @@ module Google # Holder object for the value of a single field in a data point. # A field value has a particular format and is only ever set to one of an - # integer or a floating point value. LINT.IfChange + # integer or a floating point value. class Value include Google::Apis::Core::Hashable diff --git a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb index 98f938ed5..123403efc 100644 --- a/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +++ b/generated/google/apis/prod_tt_sasportal_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/spectrum-access-system/ module ProdTtSasportalV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200107' + REVISION = '20200130' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index 8ae9ee10e..aa2a0fa35 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20191204' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index 95c38ca45..13e2f56d4 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -189,10 +189,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # 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): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::RunV1::Expr] attr_accessor :condition @@ -1037,34 +1055,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # 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): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` diff --git a/generated/google/apis/run_v1/service.rb b/generated/google/apis/run_v1/service.rb index 09fd3b3dd..c6cc4780f 100644 --- a/generated/google/apis/run_v1/service.rb +++ b/generated/google/apis/run_v1/service.rb @@ -778,36 +778,6 @@ module Google execute_or_queue_command(command, &block) end - # Gets information about a location. - # @param [String] name - # Resource name for the location. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1::Location] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1::Location] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::RunV1::Location::Representation - command.response_class = Google::Apis::RunV1::Location - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Lists information about the supported locations for this service. # @param [String] name # The resource that owns the locations collection, if applicable. diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index 1b6d6af3d..3bc85b0f3 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1alpha1 VERSION = 'V1alpha1' - REVISION = '20191216' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 7ffb189d8..93a31f659 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -195,10 +195,28 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # 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): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::RunV1alpha1::Expr] attr_accessor :condition @@ -284,7 +302,7 @@ module Google end # - class CloudAuditLog + class CloudAuditLogsSource include Google::Apis::Core::Hashable # The API version for this call such as "events.cloud.google.com/v1alpha1". @@ -292,7 +310,7 @@ module Google # @return [String] attr_accessor :api_version - # The kind of resource, in this case "CloudAuditLog". + # The kind of resource, in this case "CloudAuditLogsSource". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -303,14 +321,15 @@ module Google # @return [Google::Apis::RunV1alpha1::ObjectMeta] attr_accessor :metadata - # The desired state of the CloudAuditLog. + # The desired state of the CloudAuditLogsSource. # Corresponds to the JSON property `spec` - # @return [Google::Apis::RunV1alpha1::CloudAuditLogSpec] + # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec] attr_accessor :spec - # CloudAuditLogStatus represents the current state of a CloudAuditLog. + # CloudAuditLogsSourceStatus represents the current state of a + # CloudAuditLogsSource. # Corresponds to the JSON property `status` - # @return [Google::Apis::RunV1alpha1::CloudAuditLogStatus] + # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSourceStatus] attr_accessor :status def initialize(**args) @@ -327,8 +346,8 @@ module Google end end - # The desired state of the CloudAuditLog. - class CloudAuditLogSpec + # The desired state of the CloudAuditLogsSource. + class CloudAuditLogsSourceSpec include Google::Apis::Core::Hashable # CloudEventOverrides defines arguments for a Source that control the output @@ -345,19 +364,6 @@ module Google # @return [String] attr_accessor :method_name - # Project is the ID of the Google Cloud Project that the PubSub Topic exists - # in. If omitted, defaults to same as the cluster. +optional - # Corresponds to the JSON property `project` - # @return [String] - attr_accessor :project - - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # SecretKeySelector selects a key of a Secret. - # Corresponds to the JSON property `pubsubSecret` - # @return [Google::Apis::RunV1alpha1::SecretKeySelector] - attr_accessor :pubsub_secret - # Optional. The resource specification. This must match "methodName" # in Cloud Audit Logs. Regex or Wildcards (*) are not supported. # Example: "projects/my-project/jobs/foo". @@ -365,18 +371,11 @@ module Google # @return [String] attr_accessor :resource_name - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # SecretKeySelector selects a key of a Secret. - # Corresponds to the JSON property `secret` - # @return [Google::Apis::RunV1alpha1::SecretKeySelector] - attr_accessor :secret - - # Email address of the IAM service account associated with the source. The + # Optional. Email address of the IAM service account associated with the source. + # The # service account represents the identity of the source, and determines what # permissions the source has. If not provided, the source will use the # project's default service account. - # +optional # Corresponds to the JSON property `serviceAccountName` # @return [String] attr_accessor :service_account_name @@ -403,27 +402,25 @@ module Google def update!(**args) @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) @method_name = args[:method_name] if args.key?(:method_name) - @project = args[:project] if args.key?(:project) - @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) @resource_name = args[:resource_name] if args.key?(:resource_name) - @secret = args[:secret] if args.key?(:secret) @service_account_name = args[:service_account_name] if args.key?(:service_account_name) @service_name = args[:service_name] if args.key?(:service_name) @sink = args[:sink] if args.key?(:sink) end end - # CloudAuditLogStatus represents the current state of a CloudAuditLog. - class CloudAuditLogStatus + # CloudAuditLogsSourceStatus represents the current state of a + # CloudAuditLogsSource. + class CloudAuditLogsSourceStatus include Google::Apis::Core::Hashable - # Array of observed CloudAuditLogConditions, indicating the current state - # of the CloudAuditLog. + # Array of observed CloudAuditLogsSourceConditions, indicating the current + # state of the CloudAuditLogsSource. # Corresponds to the JSON property `conditions` # @return [Array] attr_accessor :conditions - # ObservedGeneration is the 'Generation' of the CloudAuditLog that + # ObservedGeneration is the 'Generation' of the CloudAuditLogsSource that # was last processed by the controller. # Corresponds to the JSON property `observedGeneration` # @return [Fixnum] @@ -471,6 +468,173 @@ module Google end end + # + class CloudPubSubSource + include Google::Apis::Core::Hashable + + # The API version for this call such as "events.cloud.google.com/v1alpha1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # The kind of resource, in this case "CloudPubSubSource". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ObjectMeta is metadata that all persisted resources must have, which includes + # all objects users must create. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1alpha1::ObjectMeta] + attr_accessor :metadata + + # The desired state of the CloudPubSubSource. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::RunV1alpha1::CloudPubSubSourceSpec] + attr_accessor :spec + + # CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. + # Corresponds to the JSON property `status` + # @return [Google::Apis::RunV1alpha1::CloudPubSubSourceStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @spec = args[:spec] if args.key?(:spec) + @status = args[:status] if args.key?(:status) + end + end + + # The desired state of the CloudPubSubSource. + class CloudPubSubSourceSpec + include Google::Apis::Core::Hashable + + # AckDeadline is the default maximum time after a subscriber receives a + # message before the subscriber should acknowledge the message. Defaults + # to 30 seconds ('30s'). + # +optional + # Corresponds to the JSON property `ackDeadline` + # @return [String] + attr_accessor :ack_deadline + + # CloudEventOverrides defines arguments for a Source that control the output + # format of the CloudEvents produced by the Source. + # Corresponds to the JSON property `ceOverrides` + # @return [Google::Apis::RunV1alpha1::CloudEventOverrides] + attr_accessor :ce_overrides + + # Project is the ID of the Google Cloud Project that the CloudPubSubSource + # Topic exists in. If omitted, defaults to same as the cluster. +optional + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # SecretKeySelector selects a key of a Secret. + # Corresponds to the JSON property `pubsubSecret` + # @return [Google::Apis::RunV1alpha1::SecretKeySelector] + attr_accessor :pubsub_secret + + # RetainAckedMessages defines whether to retain acknowledged messages. If + # true, acknowledged messages will not be expunged until they fall out of + # the RetentionDuration window. + # Corresponds to the JSON property `retainAckedMessages` + # @return [Boolean] + attr_accessor :retain_acked_messages + alias_method :retain_acked_messages?, :retain_acked_messages + + # RetentionDuration defines how long to retain messages in backlog, from + # the time of publish. If RetainAckedMessages is true, this duration + # affects the retention of acknowledged messages, otherwise only + # unacknowledged messages are retained. Cannot be longer than 7 days or + # shorter than 10 minutes. Defaults to 7 days ('7d'). + # +optional + # Corresponds to the JSON property `retentionDuration` + # @return [String] + attr_accessor :retention_duration + + # Cloud Run fully managed: not supported + # Cloud Run on GKE: supported + # SecretKeySelector selects a key of a Secret. + # Corresponds to the JSON property `secret` + # @return [Google::Apis::RunV1alpha1::SecretKeySelector] + attr_accessor :secret + + # Sink is a reference to an object that will resolve to a domain name or a + # URI directly to use as the sink. + # Corresponds to the JSON property `sink` + # @return [Google::Apis::RunV1alpha1::Destination] + attr_accessor :sink + + # Topic is the ID of the CloudPubSubSource Topic to Subscribe to. It must + # be in the form of the unique identifier within the project, not the + # entire name. E.g. it must be 'laconia', not + # 'projects/my-proj/topics/laconia'. + # Corresponds to the JSON property `topic` + # @return [String] + attr_accessor :topic + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ack_deadline = args[:ack_deadline] if args.key?(:ack_deadline) + @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) + @project = args[:project] if args.key?(:project) + @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) + @retain_acked_messages = args[:retain_acked_messages] if args.key?(:retain_acked_messages) + @retention_duration = args[:retention_duration] if args.key?(:retention_duration) + @secret = args[:secret] if args.key?(:secret) + @sink = args[:sink] if args.key?(:sink) + @topic = args[:topic] if args.key?(:topic) + end + end + + # CloudPubSubSourceStatus represents the current state of a CloudPubSubSource. + class CloudPubSubSourceStatus + include Google::Apis::Core::Hashable + + # Array of observed CloudPubSubSourceConditions, indicating the current state + # of the CloudPubSubSource. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # ObservedGeneration is the 'Generation' of the CloudPubSubSource that + # was last processed by the controller. + # Corresponds to the JSON property `observedGeneration` + # @return [Fixnum] + attr_accessor :observed_generation + + # SinkURI is the current active sink URI that has been configured for the + # Source. + # +optional + # Corresponds to the JSON property `sinkUri` + # @return [String] + attr_accessor :sink_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @conditions = args[:conditions] if args.key?(:conditions) + @observed_generation = args[:observed_generation] if args.key?(:observed_generation) + @sink_uri = args[:sink_uri] if args.key?(:sink_uri) + end + end + # Condition defines a generic condition for a Resource class Condition include Google::Apis::Core::Hashable @@ -1480,154 +1644,6 @@ module Google end end - # - class EventType - include Google::Apis::Core::Hashable - - # The API version for this call such as "eventing.knative.dev/v1alpha1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # The kind of resource, in this case "EventType". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ObjectMeta is metadata that all persisted resources must have, which includes - # all objects users must create. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1alpha1::ObjectMeta] - attr_accessor :metadata - - # Spec defines the desired state of the EventType. - # Corresponds to the JSON property `spec` - # @return [Google::Apis::RunV1alpha1::EventTypeSpec] - attr_accessor :spec - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @spec = args[:spec] if args.key?(:spec) - end - end - - # - class EventTypeImporter - include Google::Apis::Core::Hashable - - # The API version of the importer CRD. - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # The kind of the importer CRD. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Parameters required to create an importer for the EventType. - # Corresponds to the JSON property `parameters` - # @return [Array] - attr_accessor :parameters - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @kind = args[:kind] if args.key?(:kind) - @parameters = args[:parameters] if args.key?(:parameters) - end - end - - # - class EventTypeParameter - include Google::Apis::Core::Hashable - - # Description of the parameter. E.g. "Google Cloud Project Id." - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Name of the parameter. E.g. googleCloudProject. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @name = args[:name] if args.key?(:name) - end - end - - # - class EventTypeSpec - include Google::Apis::Core::Hashable - - # Refers to the Broker that can provide the EventType. - # Corresponds to the JSON property `broker` - # @return [String] - attr_accessor :broker - - # Description is a string describing what the EventType is about. - # +optional - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The importer that provides this EventType to the eventing mesh. - # Corresponds to the JSON property `importer` - # @return [Google::Apis::RunV1alpha1::EventTypeImporter] - attr_accessor :importer - - # Schema is a URI with the EventType schema. It may be a JSON schema, a - # protobuf schema, etc. - # +optional - # Corresponds to the JSON property `schema` - # @return [String] - attr_accessor :schema - - # Source is a valid URI. Refers to the CloudEvent source as it enters into - # the eventing mesh. - # Corresponds to the JSON property `source` - # @return [String] - attr_accessor :source - - # Type is authoritative. This refers to the CloudEvent type as it enters - # into the eventing mesh. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @broker = args[:broker] if args.key?(:broker) - @description = args[:description] if args.key?(:description) - @importer = args[:importer] if args.key?(:importer) - @schema = args[:schema] if args.key?(:schema) - @source = args[:source] if args.key?(:source) - @type = args[:type] if args.key?(:type) - end - end - # ExecAction describes a "run in container" action. class ExecAction include Google::Apis::Core::Hashable @@ -1652,34 +1668,50 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" - # description: "Determines whether the request has a user account" - # expression: "size(request.user) > 0" + # 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): + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # Example (Data Manipulation): + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which + # Optional. Description of the expression. This is a longer text which # describes the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in - # Common Expression Language syntax. - # The application context of the containing message determines which - # well-known feature set of CEL is supported. + # Textual representation of an expression in Common Expression Language + # syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error + # Optional. String indicating the location of the expression for error # reporting, e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing + # Optional. Title for the expression, i.e. a short string describing # its purpose. This can be used e.g. in UIs which allow to enter the # expression. # Corresponds to the JSON property `title` @@ -1975,8 +2007,9 @@ module Google end end - # ListCloudAuditLogsResponse is a list of CloudAuditLog resources. - class ListCloudAuditLogsResponse + # ListCloudAuditLogsSourcesResponse is a list of CloudAuditLogsSource + # resources. + class ListCloudAuditLogsSourcesResponse include Google::Apis::Core::Hashable # The API version for this call such as "events.cloud.google.com/v1alpha1". @@ -1984,12 +2017,57 @@ module Google # @return [String] attr_accessor :api_version - # List of CloudAuditLogs. + # List of CloudAuditLogsSources. # Corresponds to the JSON property `items` - # @return [Array] + # @return [Array] attr_accessor :items - # The kind of this resource, in this case "CloudAuditLogList". + # The kind of this resource, in this case "CloudAuditLogsSourceList". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # ListMeta describes metadata that synthetic resources must have, including + # lists and various status objects. A resource may have only one of + # `ObjectMeta, ListMeta`. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::RunV1alpha1::ListMeta] + attr_accessor :metadata + + # Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # ListCloudPubSubSourcesResponse is a list of CloudPubSubSource resources. + class ListCloudPubSubSourcesResponse + include Google::Apis::Core::Hashable + + # The API version for this call such as "events.cloud.google.com/v1alpha1". + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + + # List of CloudPubSubSources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "CloudPubSubSourceList". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2110,51 +2188,6 @@ module Google end end - # ListEventTypesResponse is a list of EventType resources. - class ListEventTypesResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "eventing.knative.dev/v1alpha1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of EventTypes. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "EventTypeList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1alpha1::ListMeta] - attr_accessor :metadata - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - # The response message for Locations.ListLocations. class ListLocationsResponse include Google::Apis::Core::Hashable @@ -2231,51 +2264,6 @@ module Google end end - # ListPubSubsResponse is a list of PubSub resources. - class ListPubSubsResponse - include Google::Apis::Core::Hashable - - # The API version for this call such as "events.cloud.google.com/v1alpha1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # List of PubSubs. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of this resource, in this case "PubSubList". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ListMeta describes metadata that synthetic resources must have, including - # lists and various status objects. A resource may have only one of - # `ObjectMeta, ListMeta`. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1alpha1::ListMeta] - attr_accessor :metadata - - # Locations that could not be reached. - # Corresponds to the JSON property `unreachable` - # @return [Array] - attr_accessor :unreachable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @unreachable = args[:unreachable] if args.key?(:unreachable) - end - end - # ListRevisionsResponse is a list of Revision resources. class ListRevisionsResponse include Google::Apis::Core::Hashable @@ -3110,183 +3098,6 @@ module Google end end - # - class PubSub - include Google::Apis::Core::Hashable - - # The API version for this call such as "events.cloud.google.com/v1alpha1". - # Corresponds to the JSON property `apiVersion` - # @return [String] - attr_accessor :api_version - - # The kind of resource, in this case "PubSub". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # ObjectMeta is metadata that all persisted resources must have, which includes - # all objects users must create. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::RunV1alpha1::ObjectMeta] - attr_accessor :metadata - - # The desired state of the PubSub. - # Corresponds to the JSON property `spec` - # @return [Google::Apis::RunV1alpha1::PubSubSpec] - attr_accessor :spec - - # PubSubStatus represents the current state of a PubSub. - # Corresponds to the JSON property `status` - # @return [Google::Apis::RunV1alpha1::PubSubStatus] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @api_version = args[:api_version] if args.key?(:api_version) - @kind = args[:kind] if args.key?(:kind) - @metadata = args[:metadata] if args.key?(:metadata) - @spec = args[:spec] if args.key?(:spec) - @status = args[:status] if args.key?(:status) - end - end - - # The desired state of the PubSub. - class PubSubSpec - include Google::Apis::Core::Hashable - - # AckDeadline is the default maximum time after a subscriber receives a - # message before the subscriber should acknowledge the message. Defaults - # to 30 seconds ('30s'). - # +optional - # Corresponds to the JSON property `ackDeadline` - # @return [String] - attr_accessor :ack_deadline - - # CloudEventOverrides defines arguments for a Source that control the output - # format of the CloudEvents produced by the Source. - # Corresponds to the JSON property `ceOverrides` - # @return [Google::Apis::RunV1alpha1::CloudEventOverrides] - attr_accessor :ce_overrides - - # Project is the ID of the Google Cloud Project that the PubSub Topic exists - # in. If omitted, defaults to same as the cluster. +optional - # Corresponds to the JSON property `project` - # @return [String] - attr_accessor :project - - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # SecretKeySelector selects a key of a Secret. - # Corresponds to the JSON property `pubsubSecret` - # @return [Google::Apis::RunV1alpha1::SecretKeySelector] - attr_accessor :pubsub_secret - - # RetainAckedMessages defines whether to retain acknowledged messages. If - # true, acknowledged messages will not be expunged until they fall out of - # the RetentionDuration window. - # Corresponds to the JSON property `retainAckedMessages` - # @return [Boolean] - attr_accessor :retain_acked_messages - alias_method :retain_acked_messages?, :retain_acked_messages - - # RetentionDuration defines how long to retain messages in backlog, from - # the time of publish. If RetainAckedMessages is true, this duration - # affects the retention of acknowledged messages, otherwise only - # unacknowledged messages are retained. Cannot be longer than 7 days or - # shorter than 10 minutes. Defaults to 7 days ('7d'). - # +optional - # Corresponds to the JSON property `retentionDuration` - # @return [String] - attr_accessor :retention_duration - - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # SecretKeySelector selects a key of a Secret. - # Corresponds to the JSON property `secret` - # @return [Google::Apis::RunV1alpha1::SecretKeySelector] - attr_accessor :secret - - # Email address of the IAM service account associated with the source. The - # service account represents the identity of the source, and determines what - # permissions the source has. If not provided, the source will use the - # project's Compute Engine default service account. - # +optional - # Corresponds to the JSON property `serviceAccountName` - # @return [String] - attr_accessor :service_account_name - - # Sink is a reference to an object that will resolve to a domain name or a - # URI directly to use as the sink. - # Corresponds to the JSON property `sink` - # @return [Google::Apis::RunV1alpha1::Destination] - attr_accessor :sink - - # Topic is the ID of the PubSub Topic to Subscribe to. It must - # be in the form of the unique identifier within the project, not the - # entire name. E.g. it must be 'laconia', not - # 'projects/my-proj/topics/laconia'. - # Corresponds to the JSON property `topic` - # @return [String] - attr_accessor :topic - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ack_deadline = args[:ack_deadline] if args.key?(:ack_deadline) - @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) - @project = args[:project] if args.key?(:project) - @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) - @retain_acked_messages = args[:retain_acked_messages] if args.key?(:retain_acked_messages) - @retention_duration = args[:retention_duration] if args.key?(:retention_duration) - @secret = args[:secret] if args.key?(:secret) - @service_account_name = args[:service_account_name] if args.key?(:service_account_name) - @sink = args[:sink] if args.key?(:sink) - @topic = args[:topic] if args.key?(:topic) - end - end - - # PubSubStatus represents the current state of a PubSub. - class PubSubStatus - include Google::Apis::Core::Hashable - - # Array of observed PubSubConditions, indicating the current state - # of the PubSub. - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # ObservedGeneration is the 'Generation' of the PubSub that - # was last processed by the controller. - # Corresponds to the JSON property `observedGeneration` - # @return [Fixnum] - attr_accessor :observed_generation - - # SinkURI is the current active sink URI that has been configured for the - # Source. - # +optional - # Corresponds to the JSON property `sinkUri` - # @return [String] - attr_accessor :sink_uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @conditions = args[:conditions] if args.key?(:conditions) - @observed_generation = args[:observed_generation] if args.key?(:observed_generation) - @sink_uri = args[:sink_uri] if args.key?(:sink_uri) - end - end - # The view model of a single quantity, e.g. "800 MiB". Corresponds to # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/ # apimachinery/pkg/api/resource/generated.proto @@ -4787,34 +4598,6 @@ module Google end end - # - class SubscriberSpec - include Google::Apis::Core::Hashable - - # ObjectReference contains enough information to let you inspect or modify the - # referred object. - # Corresponds to the JSON property `ref` - # @return [Google::Apis::RunV1alpha1::ObjectReference] - attr_accessor :ref - - # Reference to a 'known' endpoint where no resolving is done. - # http://k8s-service for example - # http://myexternalhandler.example.com/foo/bar - # Corresponds to the JSON property `uri` - # @return [String] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ref = args[:ref] if args.key?(:ref) - @uri = args[:uri] if args.key?(:uri) - end - end - # TCPSocketAction describes an action based on opening a socket class TcpSocketAction include Google::Apis::Core::Hashable @@ -5015,26 +4798,23 @@ module Google class TriggerCondition include Google::Apis::Core::Hashable - # Last time the condition transitioned from one status to another. - # +optional + # Optional. Last time the condition transitioned from one status to another. # Corresponds to the JSON property `lastTransitionTime` # @return [String] attr_accessor :last_transition_time - # Human readable message indicating details about the current status. - # +optional + # Optional. Human readable message indicating details about the current status. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message - # One-word CamelCase reason for the condition's current status. - # +optional + # Optional. One-word CamelCase reason for the condition's current status. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason - # How to interpret failures of this condition, one of Error, Warning, Info - # +optional + # Optional. How to interpret failures of this condition, one of Error, Warning, + # Info # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity @@ -5068,25 +4848,18 @@ module Google class TriggerFilter include Google::Apis::Core::Hashable - # Cloud Run fully managed: not supported - # Cloud Run on GKE: supported - # Attributes filters events by exact match on event context attributes. + # Optional. Attributes filters events by exact match on event context attributes. # Each key in the map is compared with the equivalent key in the event # context. An event passes the filter if all values are equal to the # specified values. # Nested context attributes are not supported as keys. # Only string values are supported. - # +optional + # Note that this field is optional in knative. In fully managed, 'type' + # attribute is required due to different broker implementation. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes - # TriggerFilterSourceAndType is DEPRECATED. Filters are now contained in the - # map of attributes in TriggerFilter proto. - # Corresponds to the JSON property `sourceAndType` - # @return [Google::Apis::RunV1alpha1::TriggerFilterSourceAndType] - attr_accessor :source_and_type - def initialize(**args) update!(**args) end @@ -5094,59 +4867,6 @@ module Google # Update properties of this object def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) - @source_and_type = args[:source_and_type] if args.key?(:source_and_type) - end - end - - # TriggerFilterSourceAndType is DEPRECATED. Filters are now contained in the - # map of attributes in TriggerFilter proto. - class TriggerFilterSourceAndType - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `source` - # @return [String] - attr_accessor :source - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @source = args[:source] if args.key?(:source) - @type = args[:type] if args.key?(:type) - end - end - - # Deprecated, importer specification will be available via GcpImporterDao. - class TriggerImporterSpec - include Google::Apis::Core::Hashable - - # Arguments to use for the importer. These must match the parameters in the - # EventType's importer. - # Corresponds to the JSON property `arguments` - # @return [Hash] - attr_accessor :arguments - - # Name of the EventType that this importer provides. - # Corresponds to the JSON property `eventTypeName` - # @return [String] - attr_accessor :event_type_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @arguments = args[:arguments] if args.key?(:arguments) - @event_type_name = args[:event_type_name] if args.key?(:event_type_name) end end @@ -5161,30 +4881,18 @@ module Google # @return [String] attr_accessor :broker - # Filter is the filter to apply against all events from the Broker. Only + # Optional. Filter is the filter to apply against all events from the Broker. + # Only # events that pass this filter will be sent to the Subscriber. + # Note that filter is optional in knative and is only required in fully + # managed due to different broker implementation. # Corresponds to the JSON property `filter` # @return [Google::Apis::RunV1alpha1::TriggerFilter] attr_accessor :filter - # Deprecated, importer specification will be replaced by information stored - # in GcpImporterDao. - # Corresponds to the JSON property `importers` - # @return [Array] - attr_accessor :importers - # Sink is the addressable that will receive events. - # Corresponds to the JSON property `sink` - # @return [Google::Apis::RunV1alpha1::Destination] - attr_accessor :sink - - # Deprecated, sink will be represented by Destination. - # Subscriber is the addressable that receives events from the Broker that - # pass the Filter. It is required. - # E.g. https://us-central1-myproject.cloudfunctions.net/myfunction or - # /namespaces/my-project/services/my-service. # Corresponds to the JSON property `subscriber` - # @return [Google::Apis::RunV1alpha1::SubscriberSpec] + # @return [Google::Apis::RunV1alpha1::Destination] attr_accessor :subscriber def initialize(**args) @@ -5195,8 +4903,6 @@ module Google def update!(**args) @broker = args[:broker] if args.key?(:broker) @filter = args[:filter] if args.key?(:filter) - @importers = args[:importers] if args.key?(:importers) - @sink = args[:sink] if args.key?(:sink) @subscriber = args[:subscriber] if args.key?(:subscriber) end end diff --git a/generated/google/apis/run_v1alpha1/representations.rb b/generated/google/apis/run_v1alpha1/representations.rb index bd93f9559..47c199e0d 100644 --- a/generated/google/apis/run_v1alpha1/representations.rb +++ b/generated/google/apis/run_v1alpha1/representations.rb @@ -58,19 +58,19 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class CloudAuditLog + class CloudAuditLogsSource class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CloudAuditLogSpec + class CloudAuditLogsSourceSpec class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class CloudAuditLogStatus + class CloudAuditLogsSourceStatus class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -82,6 +82,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudPubSubSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudPubSubSourceSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudPubSubSourceStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Condition class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,30 +214,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class EventType - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EventTypeImporter - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EventTypeParameter - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class EventTypeSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ExecAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -286,7 +280,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListCloudAuditLogsResponse + class ListCloudAuditLogsSourcesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListCloudPubSubSourcesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -304,12 +304,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListEventTypesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListLocationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,12 +316,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ListPubSubsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListRevisionsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -400,24 +388,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class PubSub - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PubSubSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PubSubStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Quantity class Representation < Google::Apis::Core::JsonRepresentation; end @@ -592,12 +562,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class SubscriberSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TcpSocketAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -640,18 +604,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class TriggerFilterSourceAndType - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TriggerImporterSpec - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class TriggerSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -733,32 +685,27 @@ module Google end end - class CloudAuditLog + class CloudAuditLogsSource # @private class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation - property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::CloudAuditLogSpec, decorator: Google::Apis::RunV1alpha1::CloudAuditLogSpec::Representation + property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec, decorator: Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec::Representation - property :status, as: 'status', class: Google::Apis::RunV1alpha1::CloudAuditLogStatus, decorator: Google::Apis::RunV1alpha1::CloudAuditLogStatus::Representation + property :status, as: 'status', class: Google::Apis::RunV1alpha1::CloudAuditLogsSourceStatus, decorator: Google::Apis::RunV1alpha1::CloudAuditLogsSourceStatus::Representation end end - class CloudAuditLogSpec + class CloudAuditLogsSourceSpec # @private class Representation < Google::Apis::Core::JsonRepresentation property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation property :method_name, as: 'methodName' - property :project, as: 'project' - property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation - property :resource_name, as: 'resourceName' - property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation - property :service_account_name, as: 'serviceAccountName' property :service_name, as: 'serviceName' property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation @@ -766,7 +713,7 @@ module Google end end - class CloudAuditLogStatus + class CloudAuditLogsSourceStatus # @private class Representation < Google::Apis::Core::JsonRepresentation collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation @@ -783,6 +730,49 @@ module Google end end + class CloudPubSubSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation + + property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::CloudPubSubSourceSpec, decorator: Google::Apis::RunV1alpha1::CloudPubSubSourceSpec::Representation + + property :status, as: 'status', class: Google::Apis::RunV1alpha1::CloudPubSubSourceStatus, decorator: Google::Apis::RunV1alpha1::CloudPubSubSourceStatus::Representation + + end + end + + class CloudPubSubSourceSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ack_deadline, as: 'ackDeadline' + property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation + + property :project, as: 'project' + property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + property :retain_acked_messages, as: 'retainAckedMessages' + property :retention_duration, as: 'retentionDuration' + property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation + + property :topic, as: 'topic' + end + end + + class CloudPubSubSourceStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation + + property :observed_generation, as: 'observedGeneration' + property :sink_uri, as: 'sinkUri' + end + end + class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1016,49 +1006,6 @@ module Google end end - class EventType - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation - - property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::EventTypeSpec, decorator: Google::Apis::RunV1alpha1::EventTypeSpec::Representation - - end - end - - class EventTypeImporter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - property :kind, as: 'kind' - collection :parameters, as: 'parameters', class: Google::Apis::RunV1alpha1::EventTypeParameter, decorator: Google::Apis::RunV1alpha1::EventTypeParameter::Representation - - end - end - - class EventTypeParameter - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :name, as: 'name' - end - end - - class EventTypeSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :broker, as: 'broker' - property :description, as: 'description' - property :importer, as: 'importer', class: Google::Apis::RunV1alpha1::EventTypeImporter, decorator: Google::Apis::RunV1alpha1::EventTypeImporter::Representation - - property :schema, as: 'schema' - property :source, as: 'source' - property :type, as: 'type' - end - end - class ExecAction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1161,11 +1108,24 @@ module Google end end - class ListCloudAuditLogsResponse + class ListCloudAuditLogsSourcesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' - collection :items, as: 'items', class: Google::Apis::RunV1alpha1::CloudAuditLog, decorator: Google::Apis::RunV1alpha1::CloudAuditLog::Representation + collection :items, as: 'items', class: Google::Apis::RunV1alpha1::CloudAuditLogsSource, decorator: Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + + property :kind, as: 'kind' + property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class ListCloudPubSubSourcesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + collection :items, as: 'items', class: Google::Apis::RunV1alpha1::CloudPubSubSource, decorator: Google::Apis::RunV1alpha1::CloudPubSubSource::Representation property :kind, as: 'kind' property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation @@ -1200,19 +1160,6 @@ module Google end end - class ListEventTypesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - collection :items, as: 'items', class: Google::Apis::RunV1alpha1::EventType, decorator: Google::Apis::RunV1alpha1::EventType::Representation - - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - - collection :unreachable, as: 'unreachable' - end - end - class ListLocationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1231,19 +1178,6 @@ module Google end end - class ListPubSubsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - collection :items, as: 'items', class: Google::Apis::RunV1alpha1::PubSub, decorator: Google::Apis::RunV1alpha1::PubSub::Representation - - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation - - collection :unreachable, as: 'unreachable' - end - end - class ListRevisionsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1401,50 +1335,6 @@ module Google end end - class PubSub - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :api_version, as: 'apiVersion' - property :kind, as: 'kind' - property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation - - property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::PubSubSpec, decorator: Google::Apis::RunV1alpha1::PubSubSpec::Representation - - property :status, as: 'status', class: Google::Apis::RunV1alpha1::PubSubStatus, decorator: Google::Apis::RunV1alpha1::PubSubStatus::Representation - - end - end - - class PubSubSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ack_deadline, as: 'ackDeadline' - property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation - - property :project, as: 'project' - property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation - - property :retain_acked_messages, as: 'retainAckedMessages' - property :retention_duration, as: 'retentionDuration' - property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation - - property :service_account_name, as: 'serviceAccountName' - property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation - - property :topic, as: 'topic' - end - end - - class PubSubStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation - - property :observed_generation, as: 'observedGeneration' - property :sink_uri, as: 'sinkUri' - end - end - class Quantity # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1795,15 +1685,6 @@ module Google end end - class SubscriberSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ref, as: 'ref', class: Google::Apis::RunV1alpha1::ObjectReference, decorator: Google::Apis::RunV1alpha1::ObjectReference::Representation - - property :uri, as: 'uri' - end - end - class TcpSocketAction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1870,24 +1751,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation hash :attributes, as: 'attributes' - property :source_and_type, as: 'sourceAndType', class: Google::Apis::RunV1alpha1::TriggerFilterSourceAndType, decorator: Google::Apis::RunV1alpha1::TriggerFilterSourceAndType::Representation - - end - end - - class TriggerFilterSourceAndType - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :source, as: 'source' - property :type, as: 'type' - end - end - - class TriggerImporterSpec - # @private - class Representation < Google::Apis::Core::JsonRepresentation - hash :arguments, as: 'arguments' - property :event_type_name, as: 'eventTypeName' end end @@ -1897,11 +1760,7 @@ module Google property :broker, as: 'broker' property :filter, as: 'filter', class: Google::Apis::RunV1alpha1::TriggerFilter, decorator: Google::Apis::RunV1alpha1::TriggerFilter::Representation - collection :importers, as: 'importers', class: Google::Apis::RunV1alpha1::TriggerImporterSpec, decorator: Google::Apis::RunV1alpha1::TriggerImporterSpec::Representation - - property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation - - property :subscriber, as: 'subscriber', class: Google::Apis::RunV1alpha1::SubscriberSpec, decorator: Google::Apis::RunV1alpha1::SubscriberSpec::Representation + property :subscriber, as: 'subscriber', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation end end diff --git a/generated/google/apis/run_v1alpha1/service.rb b/generated/google/apis/run_v1alpha1/service.rb index 5772bb09a..75f87e221 100644 --- a/generated/google/apis/run_v1alpha1/service.rb +++ b/generated/google/apis/run_v1alpha1/service.rb @@ -84,11 +84,11 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new cloudauditlog. + # Creates a new cloudauditlogssource. # @param [String] parent - # The project ID or project number in which this cloudauditlog should + # The project ID or project number in which this cloudauditlogssource should # be created. - # @param [Google::Apis::RunV1alpha1::CloudAuditLog] cloud_audit_log_object + # @param [Google::Apis::RunV1alpha1::CloudAuditLogsSource] cloud_audit_logs_source_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -98,29 +98,29 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLog] parsed result object + # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1alpha1::CloudAuditLog] + # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_namespace_cloudauditlog(parent, cloud_audit_log_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogs', options) - command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.request_object = cloud_audit_log_object - command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.response_class = Google::Apis::RunV1alpha1::CloudAuditLog + def create_namespace_cloudauditlogssource(parent, cloud_audit_logs_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + command.request_object = cloud_audit_logs_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Rpc to delete a cloudauditlog. + # Rpc to delete a cloudauditlogssource. # @param [String] name - # The name of the cloudauditlog being deleted. If needed, replace + # The name of the cloudauditlogssource being deleted. If needed, replace # `namespace_id` with the project ID. # @param [String] api_version # Cloud Run currently ignores this parameter. @@ -148,7 +148,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_namespace_cloudauditlog(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_namespace_cloudauditlogssource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation command.response_class = Google::Apis::RunV1alpha1::Empty @@ -161,9 +161,9 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to get information about a cloudauditlog. + # Rpc to get information about a cloudauditlogssource. # @param [String] name - # The name of the cloudauditlog being retrieved. If needed, replace + # The name of the cloudauditlogssource being retrieved. If needed, replace # `namespace_id` with the project ID. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -174,27 +174,192 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLog] parsed result object + # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1alpha1::CloudAuditLog] + # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_namespace_cloudauditlog(name, fields: nil, quota_user: nil, options: nil, &block) + def get_namespace_cloudauditlogssource(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.response_class = Google::Apis::RunV1alpha1::CloudAuditLog + command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Rpc to list cloudauditlogs. + # Rpc to list cloudauditlogssources. # @param [String] parent - # The project ID or project number from which the cloudauditlogs should + # The project ID or project number from which the cloudauditlogssources + # should be listed. + # @param [String] continue + # Optional encoded string to continue paging. + # @param [String] field_selector + # Allows to filter resources based on a specific value for a field name. + # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. + # Not currently used by Cloud Run. + # @param [Boolean] include_uninitialized + # Not currently used by Cloud Run. + # @param [String] label_selector + # Allows to filter resources based on a label. Supported operations are + # =, !=, exists, in, and notIn. + # @param [Fixnum] limit + # The maximum number of records that should be returned. + # @param [String] resource_version + # The baseline resource version from which the list or watch operation should + # start. Not currently used by Cloud Run. + # @param [Boolean] watch + # Flag that indicates that the client expects to watch this resource as well. + # Not currently used by Cloud Run. + # @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::RunV1alpha1::ListCloudAuditLogsSourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse] + # + # @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_namespace_cloudauditlogssources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse + command.params['parent'] = parent unless parent.nil? + command.query['continue'] = continue unless continue.nil? + command.query['fieldSelector'] = field_selector unless field_selector.nil? + command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? + command.query['labelSelector'] = label_selector unless label_selector.nil? + command.query['limit'] = limit unless limit.nil? + command.query['resourceVersion'] = resource_version unless resource_version.nil? + command.query['watch'] = watch unless watch.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new cloudpubsubsource. + # @param [String] parent + # The project ID or project number in which this cloudpubsubsource should + # be created. + # @param [Google::Apis::RunV1alpha1::CloudPubSubSource] cloud_pub_sub_source_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudPubSubSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_namespace_cloudpubsubsource(parent, cloud_pub_sub_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation + command.request_object = cloud_pub_sub_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to delete a cloudpubsubsource. + # @param [String] name + # The name of the cloudpubsubsource being deleted. If needed, replace + # `namespace_id` with the project ID. + # @param [String] api_version + # Cloud Run currently ignores this parameter. + # @param [String] kind + # Cloud Run currently ignores this parameter. + # @param [String] propagation_policy + # Specifies the propagation policy of delete. Cloud Run currently ignores + # this setting, and deletes in the background. Please see + # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for + # more information. + # @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::RunV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_namespace_cloudpubsubsource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation + command.response_class = Google::Apis::RunV1alpha1::Empty + command.params['name'] = name unless name.nil? + command.query['apiVersion'] = api_version unless api_version.nil? + command.query['kind'] = kind unless kind.nil? + command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to get information about a cloudpubsubsource. + # @param [String] name + # The name of the cloudpubsubsource being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudPubSubSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_namespace_cloudpubsubsource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to list cloudpubsubsources. + # @param [String] parent + # The project ID or project number from which the cloudpubsubsources should # be listed. # @param [String] continue # Optional encoded string to continue paging. @@ -224,18 +389,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse] parsed result object + # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse] + # @return [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] # # @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_namespace_cloudauditlogs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogs', options) - command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse + def list_namespace_cloudpubsubsources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse command.params['parent'] = parent unless parent.nil? command.query['continue'] = continue unless continue.nil? command.query['fieldSelector'] = field_selector unless field_selector.nil? @@ -249,45 +414,6 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to replace a cloudauditlog. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the cloudauditlog being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::CloudAuditLog] cloud_audit_log_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLog] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::CloudAuditLog] - # - # @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 replace_namespace_cloudauditlog_cloud_audit_log(name, cloud_audit_log_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.request_object = cloud_audit_log_object - command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.response_class = Google::Apis::RunV1alpha1::CloudAuditLog - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Rpc to get information about a configuration. # @param [String] name # The name of the configuration being retrieved. If needed, replace @@ -548,298 +674,6 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to get information about an EventType. - # @param [String] name - # The name of the trigger being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::EventType] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::EventType] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_namespace_eventtype(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::EventType::Representation - command.response_class = Google::Apis::RunV1alpha1::EventType - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to list EventTypes. - # @param [String] parent - # The project ID or project number from which the EventTypes should be - # listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @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::RunV1alpha1::ListEventTypesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::ListEventTypesResponse] - # - # @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_namespace_eventtypes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/eventing.knative.dev/v1alpha1/{+parent}/eventtypes', options) - command.response_representation = Google::Apis::RunV1alpha1::ListEventTypesResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListEventTypesResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new pubsub. - # @param [String] parent - # The project ID or project number in which this pubsub should - # be created. - # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::PubSub] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_namespace_pubsub(parent, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/pubsubs', options) - command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.request_object = pub_sub_object - command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.response_class = Google::Apis::RunV1alpha1::PubSub - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to delete a pubsub. - # @param [String] name - # The name of the pubsub being deleted. If needed, replace - # `namespace_id` with the project ID. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @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::RunV1alpha1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_namespace_pubsub(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation - command.response_class = Google::Apis::RunV1alpha1::Empty - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to get information about a pubsub. - # @param [String] name - # The name of the pubsub being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::PubSub] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_namespace_pubsub(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.response_class = Google::Apis::RunV1alpha1::PubSub - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to list pubsubs. - # @param [String] parent - # The project ID or project number from which the pubsubs should - # be listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @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::RunV1alpha1::ListPubSubsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::ListPubSubsResponse] - # - # @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_namespace_pubsubs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/pubsubs', options) - command.response_representation = Google::Apis::RunV1alpha1::ListPubSubsResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListPubSubsResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to replace a pubsub. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the pubsub being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::PubSub] - # - # @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 replace_namespace_pubsub_pub_sub(name, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.request_object = pub_sub_object - command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.response_class = Google::Apis::RunV1alpha1::PubSub - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Rpc to delete a revision. # @param [String] name # The name of the revision being deleted. If needed, replace @@ -1592,7 +1426,7 @@ module Google # The project ID or project number from which the triggers should # be listed. # @param [String] continue - # Optional encoded string to continue paging. + # Optional. Encoded string to continue paging. # @param [String] field_selector # Allows to filter resources based on a specific value for a field name. # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. @@ -1644,45 +1478,6 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to replace a trigger. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the trigger being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::Trigger] trigger_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Trigger] - # - # @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 replace_namespace_trigger_trigger(name, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'apis/eventing.knative.dev/v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation - command.request_object = trigger_object - command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation - command.response_class = Google::Apis::RunV1alpha1::Trigger - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Lists information about the supported locations for this service. # @param [String] name # The resource that owns the locations collection, if applicable. @@ -1758,11 +1553,11 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new cloudauditlog. + # Creates a new cloudauditlogssource. # @param [String] parent - # The project ID or project number in which this cloudauditlog should + # The project ID or project number in which this cloudauditlogssource should # be created. - # @param [Google::Apis::RunV1alpha1::CloudAuditLog] cloud_audit_log_object + # @param [Google::Apis::RunV1alpha1::CloudAuditLogsSource] cloud_audit_logs_source_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1772,29 +1567,29 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLog] parsed result object + # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1alpha1::CloudAuditLog] + # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_cloudauditlog(parent, cloud_audit_log_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudauditlogs', options) - command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.request_object = cloud_audit_log_object - command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.response_class = Google::Apis::RunV1alpha1::CloudAuditLog + def create_project_location_cloudauditlogssource(parent, cloud_audit_logs_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudauditlogssources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + command.request_object = cloud_audit_logs_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Rpc to delete a cloudauditlog. + # Rpc to delete a cloudauditlogssource. # @param [String] name - # The name of the cloudauditlog being deleted. If needed, replace + # The name of the cloudauditlogssource being deleted. If needed, replace # `namespace_id` with the project ID. # @param [String] api_version # Cloud Run currently ignores this parameter. @@ -1822,7 +1617,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_cloudauditlog(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_cloudauditlogssource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', options) command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation command.response_class = Google::Apis::RunV1alpha1::Empty @@ -1835,9 +1630,9 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to get information about a cloudauditlog. + # Rpc to get information about a cloudauditlogssource. # @param [String] name - # The name of the cloudauditlog being retrieved. If needed, replace + # The name of the cloudauditlogssource being retrieved. If needed, replace # `namespace_id` with the project ID. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1848,27 +1643,192 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLog] parsed result object + # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLogsSource] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1alpha1::CloudAuditLog] + # @return [Google::Apis::RunV1alpha1::CloudAuditLogsSource] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_cloudauditlog(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_cloudauditlogssource(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.response_class = Google::Apis::RunV1alpha1::CloudAuditLog + command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLogsSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudAuditLogsSource command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Rpc to list cloudauditlogs. + # Rpc to list cloudauditlogssources. # @param [String] parent - # The project ID or project number from which the cloudauditlogs should + # The project ID or project number from which the cloudauditlogssources + # should be listed. + # @param [String] continue + # Optional encoded string to continue paging. + # @param [String] field_selector + # Allows to filter resources based on a specific value for a field name. + # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. + # Not currently used by Cloud Run. + # @param [Boolean] include_uninitialized + # Not currently used by Cloud Run. + # @param [String] label_selector + # Allows to filter resources based on a label. Supported operations are + # =, !=, exists, in, and notIn. + # @param [Fixnum] limit + # The maximum number of records that should be returned. + # @param [String] resource_version + # The baseline resource version from which the list or watch operation should + # start. Not currently used by Cloud Run. + # @param [Boolean] watch + # Flag that indicates that the client expects to watch this resource as well. + # Not currently used by Cloud Run. + # @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::RunV1alpha1::ListCloudAuditLogsSourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_cloudauditlogssources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudauditlogssources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsSourcesResponse + command.params['parent'] = parent unless parent.nil? + command.query['continue'] = continue unless continue.nil? + command.query['fieldSelector'] = field_selector unless field_selector.nil? + command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? + command.query['labelSelector'] = label_selector unless label_selector.nil? + command.query['limit'] = limit unless limit.nil? + command.query['resourceVersion'] = resource_version unless resource_version.nil? + command.query['watch'] = watch unless watch.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new cloudpubsubsource. + # @param [String] parent + # The project ID or project number in which this cloudpubsubsource should + # be created. + # @param [Google::Apis::RunV1alpha1::CloudPubSubSource] cloud_pub_sub_source_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudPubSubSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_cloudpubsubsource(parent, cloud_pub_sub_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/cloudpubsubsources', options) + command.request_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation + command.request_object = cloud_pub_sub_source_object + command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to delete a cloudpubsubsource. + # @param [String] name + # The name of the cloudpubsubsource being deleted. If needed, replace + # `namespace_id` with the project ID. + # @param [String] api_version + # Cloud Run currently ignores this parameter. + # @param [String] kind + # Cloud Run currently ignores this parameter. + # @param [String] propagation_policy + # Specifies the propagation policy of delete. Cloud Run currently ignores + # this setting, and deletes in the background. Please see + # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for + # more information. + # @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::RunV1alpha1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_cloudpubsubsource(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation + command.response_class = Google::Apis::RunV1alpha1::Empty + command.params['name'] = name unless name.nil? + command.query['apiVersion'] = api_version unless api_version.nil? + command.query['kind'] = kind unless kind.nil? + command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to get information about a cloudpubsubsource. + # @param [String] name + # The name of the cloudpubsubsource being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::RunV1alpha1::CloudPubSubSource] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::CloudPubSubSource] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_cloudpubsubsource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::CloudPubSubSource::Representation + command.response_class = Google::Apis::RunV1alpha1::CloudPubSubSource + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Rpc to list cloudpubsubsources. + # @param [String] parent + # The project ID or project number from which the cloudpubsubsources should # be listed. # @param [String] continue # Optional encoded string to continue paging. @@ -1898,18 +1858,18 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse] parsed result object + # @yieldparam result [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse] + # @return [Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_cloudauditlogs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudauditlogs', options) - command.response_representation = Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse + def list_project_location_cloudpubsubsources(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/cloudpubsubsources', options) + command.response_representation = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListCloudPubSubSourcesResponse command.params['parent'] = parent unless parent.nil? command.query['continue'] = continue unless continue.nil? command.query['fieldSelector'] = field_selector unless field_selector.nil? @@ -1923,45 +1883,6 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to replace a cloudauditlog. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the cloudauditlog being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::CloudAuditLog] cloud_audit_log_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::CloudAuditLog] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::CloudAuditLog] - # - # @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 replace_project_location_cloudauditlog_cloud_audit_log(name, cloud_audit_log_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.request_object = cloud_audit_log_object - command.response_representation = Google::Apis::RunV1alpha1::CloudAuditLog::Representation - command.response_class = Google::Apis::RunV1alpha1::CloudAuditLog - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Rpc to get information about a configuration. # @param [String] name # The name of the configuration being retrieved. If needed, replace @@ -2222,298 +2143,6 @@ module Google execute_or_queue_command(command, &block) end - # Rpc to get information about an EventType. - # @param [String] name - # The name of the trigger being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::EventType] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::EventType] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_eventtype(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::EventType::Representation - command.response_class = Google::Apis::RunV1alpha1::EventType - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to list EventTypes. - # @param [String] parent - # The project ID or project number from which the EventTypes should be - # listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @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::RunV1alpha1::ListEventTypesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::ListEventTypesResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_eventtypes(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+parent}/eventtypes', options) - command.response_representation = Google::Apis::RunV1alpha1::ListEventTypesResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListEventTypesResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new pubsub. - # @param [String] parent - # The project ID or project number in which this pubsub should - # be created. - # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::PubSub] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_pubsub(parent, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+parent}/pubsubs', options) - command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.request_object = pub_sub_object - command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.response_class = Google::Apis::RunV1alpha1::PubSub - command.params['parent'] = parent unless parent.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to delete a pubsub. - # @param [String] name - # The name of the pubsub being deleted. If needed, replace - # `namespace_id` with the project ID. - # @param [String] api_version - # Cloud Run currently ignores this parameter. - # @param [String] kind - # Cloud Run currently ignores this parameter. - # @param [String] propagation_policy - # Specifies the propagation policy of delete. Cloud Run currently ignores - # this setting, and deletes in the background. Please see - # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for - # more information. - # @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::RunV1alpha1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Empty] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_pubsub(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation - command.response_class = Google::Apis::RunV1alpha1::Empty - command.params['name'] = name unless name.nil? - command.query['apiVersion'] = api_version unless api_version.nil? - command.query['kind'] = kind unless kind.nil? - command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to get information about a pubsub. - # @param [String] name - # The name of the pubsub being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::PubSub] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_pubsub(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.response_class = Google::Apis::RunV1alpha1::PubSub - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to list pubsubs. - # @param [String] parent - # The project ID or project number from which the pubsubs should - # be listed. - # @param [String] continue - # Optional encoded string to continue paging. - # @param [String] field_selector - # Allows to filter resources based on a specific value for a field name. - # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. - # Not currently used by Cloud Run. - # @param [Boolean] include_uninitialized - # Not currently used by Cloud Run. - # @param [String] label_selector - # Allows to filter resources based on a label. Supported operations are - # =, !=, exists, in, and notIn. - # @param [Fixnum] limit - # The maximum number of records that should be returned. - # @param [String] resource_version - # The baseline resource version from which the list or watch operation should - # start. Not currently used by Cloud Run. - # @param [Boolean] watch - # Flag that indicates that the client expects to watch this resource as well. - # Not currently used by Cloud Run. - # @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::RunV1alpha1::ListPubSubsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::ListPubSubsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_pubsubs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+parent}/pubsubs', options) - command.response_representation = Google::Apis::RunV1alpha1::ListPubSubsResponse::Representation - command.response_class = Google::Apis::RunV1alpha1::ListPubSubsResponse - command.params['parent'] = parent unless parent.nil? - command.query['continue'] = continue unless continue.nil? - command.query['fieldSelector'] = field_selector unless field_selector.nil? - command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? - command.query['labelSelector'] = label_selector unless label_selector.nil? - command.query['limit'] = limit unless limit.nil? - command.query['resourceVersion'] = resource_version unless resource_version.nil? - command.query['watch'] = watch unless watch.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Rpc to replace a pubsub. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the pubsub being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::PubSub] - # - # @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 replace_project_location_pubsub_pub_sub(name, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.request_object = pub_sub_object - command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation - command.response_class = Google::Apis::RunV1alpha1::PubSub - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Rpc to delete a revision. # @param [String] name # The name of the revision being deleted. If needed, replace @@ -3376,7 +3005,7 @@ module Google # The project ID or project number from which the triggers should # be listed. # @param [String] continue - # Optional encoded string to continue paging. + # Optional. Encoded string to continue paging. # @param [String] field_selector # Allows to filter resources based on a specific value for a field name. # Send this in a query string format. i.e. 'metadata.name%3Dlorem'. @@ -3427,45 +3056,6 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - - # Rpc to replace a trigger. - # Only the spec and metadata labels and annotations are modifiable. After - # the Update request, Cloud Run will work to make the 'status' - # match the requested 'spec'. - # May provide metadata.resourceVersion to enforce update from last read for - # optimistic concurrency control. - # @param [String] name - # The name of the trigger being retrieved. If needed, replace - # `namespace_id` with the project ID. - # @param [Google::Apis::RunV1alpha1::Trigger] trigger_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::RunV1alpha1::Trigger] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::RunV1alpha1::Trigger] - # - # @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 replace_project_location_trigger_trigger(name, trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'v1alpha1/{+name}', options) - command.request_representation = Google::Apis::RunV1alpha1::Trigger::Representation - command.request_object = trigger_object - command.response_representation = Google::Apis::RunV1alpha1::Trigger::Representation - command.response_class = Google::Apis::RunV1alpha1::Trigger - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end protected diff --git a/generated/google/apis/sasportal_v1alpha1.rb b/generated/google/apis/sasportal_v1alpha1.rb index b759483d0..4e981ac6a 100644 --- a/generated/google/apis/sasportal_v1alpha1.rb +++ b/generated/google/apis/sasportal_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/spectrum-access-system/ module SasportalV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200107' + REVISION = '20200130' # View your email address AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index ea1e4e919..90eb99da8 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200114' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index c69cb391e..0989de77d 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -438,8 +438,8 @@ module Google # @return [String] attr_accessor :address - # The number of seconds to wait for a response from a request. The default - # deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + # The number of seconds to wait for a response from a request. The default + # varies based on the request protocol and deployment environment. # Corresponds to the JSON property `deadline` # @return [Float] attr_accessor :deadline diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index 1f721c03a..fc494d7d5 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200114' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index fbafd33a7..07f2eaf08 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -425,8 +425,8 @@ module Google # @return [String] attr_accessor :address - # The number of seconds to wait for a response from a request. The default - # deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + # The number of seconds to wait for a response from a request. The default + # varies based on the request protocol and deployment environment. # Corresponds to the JSON property `deadline` # @return [Float] attr_accessor :deadline diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index 4f058ba8e..0ca043b9e 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20200114' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index 59efee1b8..05dfce944 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -425,8 +425,8 @@ module Google # @return [String] attr_accessor :address - # The number of seconds to wait for a response from a request. The default - # deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + # The number of seconds to wait for a response from a request. The default + # varies based on the request protocol and deployment environment. # Corresponds to the JSON property `deadline` # @return [Float] attr_accessor :deadline diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 90b8547b6..51c384212 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200114' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index 5f8b8f4cf..489bd79ce 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -344,8 +344,8 @@ module Google # @return [String] attr_accessor :address - # The number of seconds to wait for a response from a request. The default - # deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + # The number of seconds to wait for a response from a request. The default + # varies based on the request protocol and deployment environment. # Corresponds to the JSON property `deadline` # @return [Float] attr_accessor :deadline diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index 0f80e445c..8920ba6bb 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200114' + REVISION = '20200130' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 49469f5cd..befbf3944 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -344,8 +344,8 @@ module Google # @return [String] attr_accessor :address - # The number of seconds to wait for a response from a request. The default - # deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + # The number of seconds to wait for a response from a request. The default + # varies based on the request protocol and deployment environment. # Corresponds to the JSON property `deadline` # @return [Float] attr_accessor :deadline diff --git a/generated/google/apis/storage_v1/service.rb b/generated/google/apis/storage_v1/service.rb index b4a519f47..f564201a4 100644 --- a/generated/google/apis/storage_v1/service.rb +++ b/generated/google/apis/storage_v1/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://www.googleapis.com/', 'storage/v1/') + super('https://storage.googleapis.com/', 'storage/v1/') @batch_path = 'batch/storage/v1' end diff --git a/generated/google/apis/storage_v1beta2.rb b/generated/google/apis/storage_v1beta2.rb index 415f2a4b0..3fe6673b5 100644 --- a/generated/google/apis/storage_v1beta2.rb +++ b/generated/google/apis/storage_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1beta2 VERSION = 'V1beta2' - REVISION = '20190913' + REVISION = '20191127' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/storage_v1beta2/service.rb b/generated/google/apis/storage_v1beta2/service.rb index 754caa782..3743c3b02 100644 --- a/generated/google/apis/storage_v1beta2/service.rb +++ b/generated/google/apis/storage_v1beta2/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://www.googleapis.com/', 'storage/v1beta2/') + super('https://storage.googleapis.com/', 'storage/v1beta2/') @batch_path = 'batch/storage/v1beta2' end diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 709812118..9c2437961 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20191203' + REVISION = '20200119' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'