diff --git a/api_names_out.yaml b/api_names_out.yaml index 290d44d57..937f37618 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -113598,6 +113598,10 @@ "/logging:v2/ListExclusionsResponse/exclusions": exclusions "/logging:v2/ListExclusionsResponse/exclusions/exclusion": exclusion "/logging:v2/ListExclusionsResponse/nextPageToken": next_page_token +"/logging:v2/ListLocationsResponse": list_locations_response +"/logging:v2/ListLocationsResponse/locations": locations +"/logging:v2/ListLocationsResponse/locations/location": location +"/logging:v2/ListLocationsResponse/nextPageToken": next_page_token "/logging:v2/ListLogEntriesRequest": list_log_entries_request "/logging:v2/ListLogEntriesRequest/filter": filter "/logging:v2/ListLogEntriesRequest/orderBy": order_by @@ -113631,6 +113635,14 @@ "/logging:v2/ListViewsResponse/nextPageToken": next_page_token "/logging:v2/ListViewsResponse/views": views "/logging:v2/ListViewsResponse/views/view": view +"/logging:v2/Location": location +"/logging:v2/Location/displayName": display_name +"/logging:v2/Location/labels": labels +"/logging:v2/Location/labels/label": label +"/logging:v2/Location/locationId": location_id +"/logging:v2/Location/metadata": metadata +"/logging:v2/Location/metadata/metadatum": metadatum +"/logging:v2/Location/name": name "/logging:v2/LogBucket": log_bucket "/logging:v2/LogBucket/createTime": create_time "/logging:v2/LogBucket/description": description @@ -113851,6 +113863,13 @@ "/logging:v2/logging.billingAccounts.locations.buckets.views.patch": patch_billing_account_location_bucket_view "/logging:v2/logging.billingAccounts.locations.buckets.views.patch/name": name "/logging:v2/logging.billingAccounts.locations.buckets.views.patch/updateMask": update_mask +"/logging:v2/logging.billingAccounts.locations.get": get_billing_account_location +"/logging:v2/logging.billingAccounts.locations.get/name": name +"/logging:v2/logging.billingAccounts.locations.list": list_billing_account_locations +"/logging:v2/logging.billingAccounts.locations.list/filter": filter +"/logging:v2/logging.billingAccounts.locations.list/name": name +"/logging:v2/logging.billingAccounts.locations.list/pageSize": page_size +"/logging:v2/logging.billingAccounts.locations.list/pageToken": page_token "/logging:v2/logging.billingAccounts.logs.delete": delete_billing_account_log "/logging:v2/logging.billingAccounts.logs.delete/logName": log_name "/logging:v2/logging.billingAccounts.logs.list": list_billing_account_logs @@ -113934,6 +113953,13 @@ "/logging:v2/logging.folders.locations.buckets.views.patch": patch_folder_location_bucket_view "/logging:v2/logging.folders.locations.buckets.views.patch/name": name "/logging:v2/logging.folders.locations.buckets.views.patch/updateMask": update_mask +"/logging:v2/logging.folders.locations.get": get_folder_location +"/logging:v2/logging.folders.locations.get/name": name +"/logging:v2/logging.folders.locations.list": list_folder_locations +"/logging:v2/logging.folders.locations.list/filter": filter +"/logging:v2/logging.folders.locations.list/name": name +"/logging:v2/logging.folders.locations.list/pageSize": page_size +"/logging:v2/logging.folders.locations.list/pageToken": page_token "/logging:v2/logging.folders.logs.delete": delete_folder_log "/logging:v2/logging.folders.logs.delete/logName": log_name "/logging:v2/logging.folders.logs.list": list_folder_logs @@ -113990,6 +114016,13 @@ "/logging:v2/logging.locations.buckets.views.patch": patch_location_bucket_view "/logging:v2/logging.locations.buckets.views.patch/name": name "/logging:v2/logging.locations.buckets.views.patch/updateMask": update_mask +"/logging:v2/logging.locations.get": get_location +"/logging:v2/logging.locations.get/name": name +"/logging:v2/logging.locations.list": list_locations +"/logging:v2/logging.locations.list/filter": filter +"/logging:v2/logging.locations.list/name": name +"/logging:v2/logging.locations.list/pageSize": page_size +"/logging:v2/logging.locations.list/pageToken": page_token "/logging:v2/logging.logs.delete": delete_log "/logging:v2/logging.logs.delete/logName": log_name "/logging:v2/logging.logs.list": list_logs @@ -114044,6 +114077,13 @@ "/logging:v2/logging.organizations.locations.buckets.views.patch": patch_organization_location_bucket_view "/logging:v2/logging.organizations.locations.buckets.views.patch/name": name "/logging:v2/logging.organizations.locations.buckets.views.patch/updateMask": update_mask +"/logging:v2/logging.organizations.locations.get": get_organization_location +"/logging:v2/logging.organizations.locations.get/name": name +"/logging:v2/logging.organizations.locations.list": list_organization_locations +"/logging:v2/logging.organizations.locations.list/filter": filter +"/logging:v2/logging.organizations.locations.list/name": name +"/logging:v2/logging.organizations.locations.list/pageSize": page_size +"/logging:v2/logging.organizations.locations.list/pageToken": page_token "/logging:v2/logging.organizations.logs.delete": delete_organization_log "/logging:v2/logging.organizations.logs.delete/logName": log_name "/logging:v2/logging.organizations.logs.list": list_organization_logs @@ -114115,6 +114155,13 @@ "/logging:v2/logging.projects.locations.buckets.views.patch": patch_project_location_bucket_view "/logging:v2/logging.projects.locations.buckets.views.patch/name": name "/logging:v2/logging.projects.locations.buckets.views.patch/updateMask": update_mask +"/logging:v2/logging.projects.locations.get": get_project_location +"/logging:v2/logging.projects.locations.get/name": name +"/logging:v2/logging.projects.locations.list": list_project_locations +"/logging:v2/logging.projects.locations.list/filter": filter +"/logging:v2/logging.projects.locations.list/name": name +"/logging:v2/logging.projects.locations.list/pageSize": page_size +"/logging:v2/logging.projects.locations.list/pageToken": page_token "/logging:v2/logging.projects.logs.delete": delete_project_log "/logging:v2/logging.projects.logs.delete/logName": log_name "/logging:v2/logging.projects.logs.list": list_project_logs diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index 8b5531f75..0c92b9292 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -28,7 +28,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20201016' + REVISION = '20201022' # 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/logging_v2/classes.rb b/generated/google/apis/logging_v2/classes.rb index 8a73fa3ab..ad0d923a7 100644 --- a/generated/google/apis/logging_v2/classes.rb +++ b/generated/google/apis/logging_v2/classes.rb @@ -485,6 +485,31 @@ module Google end end + # The response message for Locations.ListLocations. + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # A list of locations that matches the specified filter in the request. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # The parameters to ListLogEntries. class ListLogEntriesRequest include Google::Apis::Core::Hashable @@ -731,6 +756,53 @@ module Google end end + # A resource that represents Google Cloud Platform location. + class Location + include Google::Apis::Core::Hashable + + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # The canonical id for this location. For example: "us-east1". + # Corresponds to the JSON property `locationId` + # @return [String] + attr_accessor :location_id + + # Service-specific metadata. For example the available capacity at the given + # location. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Resource name for the location, which may vary between implementations. For + # example: "projects/example-project/locations/us-east1" + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @labels = args[:labels] if args.key?(:labels) + @location_id = args[:location_id] if args.key?(:location_id) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + # Describes a repository of logs (Beta). class LogBucket include Google::Apis::Core::Hashable diff --git a/generated/google/apis/logging_v2/representations.rb b/generated/google/apis/logging_v2/representations.rb index 7d9b4dd76..24e4e32e3 100644 --- a/generated/google/apis/logging_v2/representations.rb +++ b/generated/google/apis/logging_v2/representations.rb @@ -88,6 +88,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLogEntriesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,6 +136,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Location + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogBucket class Representation < Google::Apis::Core::JsonRepresentation; end @@ -358,6 +370,15 @@ module Google end end + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::LoggingV2::Location, decorator: Google::Apis::LoggingV2::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListLogEntriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -423,6 +444,17 @@ module Google end end + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + hash :labels, as: 'labels' + property :location_id, as: 'locationId' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + class LogBucket # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/logging_v2/service.rb b/generated/google/apis/logging_v2/service.rb index e350fe31a..e2282dc3f 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -311,6 +311,75 @@ 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::LoggingV2::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_billing_account_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Location::Representation + command.response_class = Google::Apis::LoggingV2::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_billing_account_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/locations', options) + command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a bucket that can be used to store log entries. Once a bucket has been # created, the region cannot be changed. # @param [String] parent @@ -1498,6 +1567,75 @@ 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::LoggingV2::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_folder_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Location::Representation + command.response_class = Google::Apis::LoggingV2::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_folder_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/locations', options) + command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a bucket that can be used to store log entries. Once a bucket has been # created, the region cannot be changed. # @param [String] parent @@ -2298,6 +2436,75 @@ 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::LoggingV2::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Location::Representation + command.response_class = Google::Apis::LoggingV2::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/locations', options) + command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a bucket that can be used to store log entries. Once a bucket has been # created, the region cannot be changed. # @param [String] parent @@ -3141,6 +3348,75 @@ 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::LoggingV2::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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_organization_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Location::Representation + command.response_class = Google::Apis::LoggingV2::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organization_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/locations', options) + command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a bucket that can be used to store log entries. Once a bucket has been # created, the region cannot be changed. # @param [String] parent @@ -4135,6 +4411,75 @@ 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::LoggingV2::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::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, 'v2/{+name}', options) + command.response_representation = Google::Apis::LoggingV2::Location::Representation + command.response_class = Google::Apis::LoggingV2::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2::ListLocationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/locations', options) + command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation + command.response_class = Google::Apis::LoggingV2::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a bucket that can be used to store log entries. Once a bucket has been # created, the region cannot be changed. # @param [String] parent diff --git a/generated/google/apis/logging_v2/synth.metadata b/generated/google/apis/logging_v2/synth.metadata index fda3fa39a..fc304e282 100644 --- a/generated/google/apis/logging_v2/synth.metadata +++ b/generated/google/apis/logging_v2/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "1b99f0ce77e3f4b5d49c99097467bf511de24ffd" + "sha": "1a0c4a7b0f26aaefb051e7117cc464830308304b" } } ]