diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index df27a4e42..df2d63eac 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20191203' + REVISION = '20191216' # 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index c693680f5..4ea0a3861 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -1015,8 +1015,9 @@ module Google # Read-only after creation. The unique identifier of the parent intent in the # chain of followup intents. You can set this field when creating an intent, - # for example with CreateIntent or BatchUpdateIntents, in order to - # make this intent a followup intent. + # for example with CreateIntent or + # BatchUpdateIntents, in order to make this + # intent a followup intent. # It identifies the parent followup intent. # Format: `projects//agent/intents/`. # Corresponds to the JSON property `parentFollowupIntentName` @@ -2598,9 +2599,12 @@ module Google attr_accessor :all_required_params_present alias_method :all_required_params_present?, :all_required_params_present - # The free-form diagnostic info. For example, this field could contain - # webhook call latency. The string keys of the Struct's fields map can change - # without notice. + # Free-form diagnostic information for the associated detect intent request. + # The fields of this data can change without notice, so you should not write + # code that depends on its structure. + # The data may contain: + # - webhook call latency + # - webhook errors # Corresponds to the JSON property `diagnosticInfo` # @return [Hash] attr_accessor :diagnostic_info @@ -3062,6 +3066,16 @@ module Google end # The response message for a webhook call. + # This response is validated by the Dialogflow server. If validation fails, + # an error will be returned in the QueryResult.diagnostic_info field. + # Setting JSON fields to an empty value with the wrong type is a common error. + # To avoid this error: + # - Use `""` for empty strings + # - Use ```` or `null` for empty objects + # - Use `[]` or `null` for empty arrays + # For more information, see the + # [Protocol Buffers Language + # Guide](https://developers.google.com/protocol-buffers/docs/proto3#json). class GoogleCloudDialogflowV2WebhookResponse include Google::Apis::Core::Hashable @@ -3273,6 +3287,11 @@ module Google # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # The following context names are reserved for internal use by Dialogflow. + # You should not use these contexts or create contexts with these names: + # * `__system_counters__` + # * `*_id_dialog_context` + # * `*_dialog_params_size` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3566,8 +3585,9 @@ module Google # Read-only after creation. The unique identifier of the parent intent in the # chain of followup intents. You can set this field when creating an intent, - # for example with CreateIntent or BatchUpdateIntents, in order to - # make this intent a followup intent. + # for example with CreateIntent or + # BatchUpdateIntents, in order to make this + # intent a followup intent. # It identifies the parent followup intent. # Format: `projects//agent/intents/`. # Corresponds to the JSON property `parentFollowupIntentName` @@ -5333,7 +5353,7 @@ module Google end # The response for - # ConversationDatasets.LabelConversation + # ConversationDatasets.LabelConversation. class GoogleCloudDialogflowV2beta1LabelConversationResponse include Google::Apis::Core::Hashable @@ -5420,9 +5440,12 @@ module Google attr_accessor :all_required_params_present alias_method :all_required_params_present?, :all_required_params_present - # The free-form diagnostic info. For example, this field could contain - # webhook call latency. The string keys of the Struct's fields map can change - # without notice. + # Free-form diagnostic information for the associated detect intent request. + # The fields of this data can change without notice, so you should not write + # code that depends on its structure. + # The data may contain: + # - webhook call latency + # - webhook errors # Corresponds to the JSON property `diagnosticInfo` # @return [Hash] attr_accessor :diagnostic_info @@ -5694,6 +5717,16 @@ module Google end # The response message for a webhook call. + # This response is validated by the Dialogflow server. If validation fails, + # an error will be returned in the QueryResult.diagnostic_info field. + # Setting JSON fields to an empty value with the wrong type is a common error. + # To avoid this error: + # - Use `""` for empty strings + # - Use ```` or `null` for empty objects + # - Use `[]` or `null` for empty arrays + # For more information, see the + # [Protocol Buffers Language + # Guide](https://developers.google.com/protocol-buffers/docs/proto3#json). class GoogleCloudDialogflowV2beta1WebhookResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 4a6b3221e..242dbe5ee 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20191203' + REVISION = '20191216' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index bfe3d2800..40b85038e 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -435,8 +435,9 @@ module Google # Read-only after creation. The unique identifier of the parent intent in the # chain of followup intents. You can set this field when creating an intent, - # for example with CreateIntent or BatchUpdateIntents, in order to - # make this intent a followup intent. + # for example with CreateIntent or + # BatchUpdateIntents, in order to make this + # intent a followup intent. # It identifies the parent followup intent. # Format: `projects//agent/intents/`. # Corresponds to the JSON property `parentFollowupIntentName` @@ -1749,9 +1750,12 @@ module Google attr_accessor :all_required_params_present alias_method :all_required_params_present?, :all_required_params_present - # The free-form diagnostic info. For example, this field could contain - # webhook call latency. The string keys of the Struct's fields map can change - # without notice. + # Free-form diagnostic information for the associated detect intent request. + # The fields of this data can change without notice, so you should not write + # code that depends on its structure. + # The data may contain: + # - webhook call latency + # - webhook errors # Corresponds to the JSON property `diagnosticInfo` # @return [Hash] attr_accessor :diagnostic_info @@ -2007,6 +2011,16 @@ module Google end # The response message for a webhook call. + # This response is validated by the Dialogflow server. If validation fails, + # an error will be returned in the QueryResult.diagnostic_info field. + # Setting JSON fields to an empty value with the wrong type is a common error. + # To avoid this error: + # - Use `""` for empty strings + # - Use ```` or `null` for empty objects + # - Use `[]` or `null` for empty arrays + # For more information, see the + # [Protocol Buffers Language + # Guide](https://developers.google.com/protocol-buffers/docs/proto3#json). class GoogleCloudDialogflowV2WebhookResponse include Google::Apis::Core::Hashable @@ -2559,6 +2573,11 @@ module Google # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # The following context names are reserved for internal use by Dialogflow. + # You should not use these contexts or create contexts with these names: + # * `__system_counters__` + # * `*_id_dialog_context` + # * `*_dialog_params_size` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3236,8 +3255,9 @@ module Google # Read-only after creation. The unique identifier of the parent intent in the # chain of followup intents. You can set this field when creating an intent, - # for example with CreateIntent or BatchUpdateIntents, in order to - # make this intent a followup intent. + # for example with CreateIntent or + # BatchUpdateIntents, in order to make this + # intent a followup intent. # It identifies the parent followup intent. # Format: `projects//agent/intents/`. # Corresponds to the JSON property `parentFollowupIntentName` @@ -5060,7 +5080,7 @@ module Google end # The response for - # ConversationDatasets.LabelConversation + # ConversationDatasets.LabelConversation. class GoogleCloudDialogflowV2beta1LabelConversationResponse include Google::Apis::Core::Hashable @@ -5470,9 +5490,12 @@ module Google attr_accessor :all_required_params_present alias_method :all_required_params_present?, :all_required_params_present - # The free-form diagnostic info. For example, this field could contain - # webhook call latency. The string keys of the Struct's fields map can change - # without notice. + # Free-form diagnostic information for the associated detect intent request. + # The fields of this data can change without notice, so you should not write + # code that depends on its structure. + # The data may contain: + # - webhook call latency + # - webhook errors # Corresponds to the JSON property `diagnosticInfo` # @return [Hash] attr_accessor :diagnostic_info @@ -6072,6 +6095,16 @@ module Google end # The response message for a webhook call. + # This response is validated by the Dialogflow server. If validation fails, + # an error will be returned in the QueryResult.diagnostic_info field. + # Setting JSON fields to an empty value with the wrong type is a common error. + # To avoid this error: + # - Use `""` for empty strings + # - Use ```` or `null` for empty objects + # - Use `[]` or `null` for empty arrays + # For more information, see the + # [Protocol Buffers Language + # Guide](https://developers.google.com/protocol-buffers/docs/proto3#json). class GoogleCloudDialogflowV2beta1WebhookResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 31d2053e0..e73cc1d11 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -996,6 +996,11 @@ module Google # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # The following context names are reserved for internal use by Dialogflow. + # You should not use these contexts or create contexts with these names: + # * `__system_counters__` + # * `*_id_dialog_context` + # * `*_dialog_params_size` # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object # @param [String] update_mask # Optional. The mask to control which fields get updated. @@ -2190,6 +2195,11 @@ module Google # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # The following context names are reserved for internal use by Dialogflow. + # You should not use these contexts or create contexts with these names: + # * `__system_counters__` + # * `*_id_dialog_context` + # * `*_dialog_params_size` # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object # @param [String] update_mask # Optional. The mask to control which fields get updated. @@ -3722,6 +3732,11 @@ module Google # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # The following context names are reserved for internal use by Dialogflow. + # You should not use these contexts or create contexts with these names: + # * `__system_counters__` + # * `*_id_dialog_context` + # * `*_dialog_params_size` # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object # @param [String] update_mask # Optional. The mask to control which fields get updated. @@ -4493,6 +4508,11 @@ module Google # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. # If `Environment ID` is not specified, we assume default 'draft' # environment. If `User ID` is not specified, we assume default '-' user. + # The following context names are reserved for internal use by Dialogflow. + # You should not use these contexts or create contexts with these names: + # * `__system_counters__` + # * `*_id_dialog_context` + # * `*_dialog_params_size` # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object # @param [String] update_mask # Optional. The mask to control which fields get updated. diff --git a/generated/google/apis/firestore_v1.rb b/generated/google/apis/firestore_v1.rb index eb52717ce..d7625273d 100644 --- a/generated/google/apis/firestore_v1.rb +++ b/generated/google/apis/firestore_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/firestore module FirestoreV1 VERSION = 'V1' - REVISION = '20191018' + REVISION = '20191206' # 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/firestore_v1/classes.rb b/generated/google/apis/firestore_v1/classes.rb index 84efc4df3..9542e26e4 100644 --- a/generated/google/apis/firestore_v1/classes.rb +++ b/generated/google/apis/firestore_v1/classes.rb @@ -1914,7 +1914,7 @@ module Google class RollbackRequest include Google::Apis::Core::Hashable - # The transaction to roll back. + # Required. The transaction to roll back. # Corresponds to the JSON property `transaction` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] diff --git a/generated/google/apis/firestore_v1/service.rb b/generated/google/apis/firestore_v1/service.rb index e2b54f89a..3cd913fe1 100644 --- a/generated/google/apis/firestore_v1/service.rb +++ b/generated/google/apis/firestore_v1/service.rb @@ -57,7 +57,7 @@ module Google # cancelled before completion it may leave partial data behind in Google # Cloud Storage. # @param [String] name - # Database to export. Should be of the form: + # Required. Database to export. Should be of the form: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ExportDocumentsRequest] google_firestore_admin_v1_export_documents_request_object # @param [String] fields @@ -95,7 +95,7 @@ module Google # created. If an ImportDocuments operation is cancelled, it is possible # that a subset of the data has already been imported to Cloud Firestore. # @param [String] name - # Database to import into. Should be of the form: + # Required. Database to import into. Should be of the form: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ImportDocumentsRequest] google_firestore_admin_v1_import_documents_request_object # @param [String] fields @@ -129,7 +129,7 @@ module Google # Gets the metadata and configuration for a Field. # @param [String] name - # A name of the form + # Required. A name of the form # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # /fields/`field_id`` # @param [String] fields @@ -165,7 +165,7 @@ module Google # FirestoreAdmin.ListFields with the filter set to # `indexConfig.usesAncestorConfig:false`. # @param [String] parent - # A parent name of the form + # Required. A parent name of the form # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # ` # @param [String] filter @@ -285,7 +285,7 @@ module Google # which may be used to track the status of the creation. The metadata for # the operation will be the type IndexOperationMetadata. # @param [String] parent - # A parent name of the form + # Required. A parent name of the form # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # ` # @param [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Index] google_firestore_admin_v1_index_object @@ -320,7 +320,7 @@ module Google # Deletes a composite index. # @param [String] name - # A name of the form + # Required. A name of the form # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # /indexes/`index_id`` # @param [String] fields @@ -352,7 +352,7 @@ module Google # Gets a composite index. # @param [String] name - # A name of the form + # Required. A name of the form # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # /indexes/`index_id`` # @param [String] fields @@ -384,7 +384,7 @@ module Google # Lists composite indexes. # @param [String] parent - # A parent name of the form + # Required. A parent name of the form # `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id` # ` # @param [String] filter @@ -429,7 +429,7 @@ module Google # Documents returned by this method are not guaranteed to be returned in the # same order that they were requested. # @param [String] database - # The database name. In the format: + # Required. The database name. In the format: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::BatchGetDocumentsRequest] batch_get_documents_request_object # @param [String] fields @@ -463,7 +463,7 @@ module Google # Starts a new transaction. # @param [String] database - # The database name. In the format: + # Required. The database name. In the format: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::BeginTransactionRequest] begin_transaction_request_object # @param [String] fields @@ -497,7 +497,7 @@ module Google # Commits a transaction, while optionally updating documents. # @param [String] database - # The database name. In the format: + # Required. The database name. In the format: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::CommitRequest] commit_request_object # @param [String] fields @@ -531,12 +531,13 @@ module Google # Creates a new document. # @param [String] parent - # The parent resource. For example: + # Required. The parent resource. For example: # `projects/`project_id`/databases/`database_id`/documents` or # `projects/`project_id`/databases/`database_id`/documents/chatrooms/` # chatroom_id`` # @param [String] collection_id - # The collection ID, relative to `parent`, to list. For example: `chatrooms`. + # Required. The collection ID, relative to `parent`, to list. For example: ` + # chatrooms`. # @param [Google::Apis::FirestoreV1::Document] document_object # @param [String] document_id # The client-assigned document ID to use for this document. @@ -578,7 +579,7 @@ module Google # Deletes a document. # @param [String] name - # The resource name of the Document to delete. In the format: + # Required. The resource name of the Document to delete. In the format: # `projects/`project_id`/databases/`database_id`/documents/`document_path``. # @param [Boolean] current_document_exists # When set to `true`, the target document must exist. @@ -617,7 +618,7 @@ module Google # Gets a single document. # @param [String] name - # The resource name of the Document to get. In the format: + # Required. The resource name of the Document to get. In the format: # `projects/`project_id`/databases/`database_id`/documents/`document_path``. # @param [Array, String] mask_field_paths # The list of field paths in the mask. See Document.fields for a field @@ -659,14 +660,15 @@ module Google # Lists documents. # @param [String] parent - # The parent resource name. In the format: + # Required. The parent resource name. In the format: # `projects/`project_id`/databases/`database_id`/documents` or # `projects/`project_id`/databases/`database_id`/documents/`document_path``. # For example: # `projects/my-project/databases/my-database/documents` or # `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` # @param [String] collection_id - # The collection ID, relative to `parent`, to list. For example: `chatrooms` + # Required. The collection ID, relative to `parent`, to list. For example: ` + # chatrooms` # or `messages`. # @param [Array, String] mask_field_paths # The list of field paths in the mask. See Document.fields for a field @@ -726,7 +728,7 @@ module Google # Lists all the collection IDs underneath a document. # @param [String] parent - # The parent document. In the format: + # Required. The parent document. In the format: # `projects/`project_id`/databases/`database_id`/documents/`document_path``. # For example: # `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` @@ -762,7 +764,7 @@ module Google # Listens to changes. # @param [String] database - # The database name. In the format: + # Required. The database name. In the format: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::ListenRequest] listen_request_object # @param [String] fields @@ -846,7 +848,7 @@ module Google # Rolls back a transaction. # @param [String] database - # The database name. In the format: + # Required. The database name. In the format: # `projects/`project_id`/databases/`database_id``. # @param [Google::Apis::FirestoreV1::RollbackRequest] rollback_request_object # @param [String] fields @@ -880,7 +882,7 @@ module Google # Runs a query. # @param [String] parent - # The parent resource name. In the format: + # Required. The parent resource name. In the format: # `projects/`project_id`/databases/`database_id`/documents` or # `projects/`project_id`/databases/`database_id`/documents/`document_path``. # For example: @@ -918,7 +920,7 @@ module Google # Streams batches of document updates and deletes, in order. # @param [String] database - # The database name. In the format: + # Required. The database name. In the format: # `projects/`project_id`/databases/`database_id``. # This is only required in the first message. # @param [Google::Apis::FirestoreV1::WriteRequest] write_request_object diff --git a/generated/google/apis/fitness_v1.rb b/generated/google/apis/fitness_v1.rb index 38551befb..a73289553 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 = '20191014' + REVISION = '20191129' # Use Google Fit to see and store your physical activity data AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' @@ -33,16 +33,16 @@ module Google # See and add to your Google Fit physical activity data AUTH_FITNESS_ACTIVITY_WRITE = 'https://www.googleapis.com/auth/fitness.activity.write' - # See info about your blood glucose in Google Fit + # See info about your blood glucose in Google Fit. I consent to Google sharing my blood glucose information with this app. AUTH_FITNESS_BLOOD_GLUCOSE_READ = 'https://www.googleapis.com/auth/fitness.blood_glucose.read' - # See and add info about your blood glucose to Google Fit + # See and add info about your blood glucose to Google Fit. I consent to Google sharing my blood glucose information with this app. AUTH_FITNESS_BLOOD_GLUCOSE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_glucose.write' - # See info about your blood pressure in Google Fit + # See info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app. AUTH_FITNESS_BLOOD_PRESSURE_READ = 'https://www.googleapis.com/auth/fitness.blood_pressure.read' - # See and add info about your blood pressure in Google Fit + # See and add info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app. AUTH_FITNESS_BLOOD_PRESSURE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_pressure.write' # See info about your body measurements and heart rate in Google Fit @@ -51,10 +51,10 @@ module Google # See and add info about your body measurements and heart rate to Google Fit AUTH_FITNESS_BODY_WRITE = 'https://www.googleapis.com/auth/fitness.body.write' - # See info about your body temperature in Google Fit + # See info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app. AUTH_FITNESS_BODY_TEMPERATURE_READ = 'https://www.googleapis.com/auth/fitness.body_temperature.read' - # See and add to info about your body temperature in Google Fit + # See and add to info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app. AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write' # See your Google Fit speed and distance data @@ -69,16 +69,16 @@ module Google # See and add to info about your nutrition in Google Fit AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write' - # See info about your oxygen saturation in Google Fit + # See info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app. AUTH_FITNESS_OXYGEN_SATURATION_READ = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.read' - # See and add info about your oxygen saturation in Google Fit + # See and add info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app. AUTH_FITNESS_OXYGEN_SATURATION_WRITE = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.write' - # See info about your reproductive health in Google Fit + # See info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app. AUTH_FITNESS_REPRODUCTIVE_HEALTH_READ = 'https://www.googleapis.com/auth/fitness.reproductive_health.read' - # See and add info about your reproductive health in Google Fit + # See and add info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app. AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write' end end diff --git a/generated/google/apis/logging_v2.rb b/generated/google/apis/logging_v2.rb index 1eb61f580..31a899f92 100644 --- a/generated/google/apis/logging_v2.rb +++ b/generated/google/apis/logging_v2.rb @@ -23,12 +23,13 @@ module Google # Writes log entries and manages your Stackdriver Logging configuration. The # table entries below are presented in alphabetical order, not in order of # common use. For explanations of the concepts found in the table entries, read - # the Stackdriver Logging documentation. + # the Stackdriver Logging + # documentation. # # @see https://cloud.google.com/logging/docs/ module LoggingV2 VERSION = 'V2' - REVISION = '20191206' + REVISION = '20191214' # 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/service.rb b/generated/google/apis/logging_v2/service.rb index 64ab0ddb0..c653f7941 100644 --- a/generated/google/apis/logging_v2/service.rb +++ b/generated/google/apis/logging_v2/service.rb @@ -25,7 +25,8 @@ module Google # Writes log entries and manages your Stackdriver Logging configuration. The # table entries below are presented in alphabetical order, not in order of # common use. For explanations of the concepts found in the table entries, read - # the Stackdriver Logging documentation. + # the Stackdriver Logging + # documentation. # # @example # require 'google/apis/logging_v2' diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index 72d06db6e..1b6d6af3d 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 = '20191204' + REVISION = '20191216' # 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 03003dafe..7ffb189d8 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -283,6 +283,171 @@ module Google end end + # + class CloudAuditLog + 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 "CloudAuditLog". + # 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 CloudAuditLog. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::RunV1alpha1::CloudAuditLogSpec] + attr_accessor :spec + + # CloudAuditLogStatus represents the current state of a CloudAuditLog. + # Corresponds to the JSON property `status` + # @return [Google::Apis::RunV1alpha1::CloudAuditLogStatus] + 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 CloudAuditLog. + class CloudAuditLogSpec + include Google::Apis::Core::Hashable + + # 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 + + # Required. The method name at the service API. This must match "methodName" in + # Cloud + # Audit Logs. Regex or Wildcards (*) are not supported. + # Example: "google.cloud.bigquery.job.create". + # Corresponds to the JSON property `methodName` + # @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". + # Corresponds to the JSON property `resourceName` + # @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 + # 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 + + # Required. The GCP service name. This must match "serviceName" in Cloud Audit + # Logs. + # Regex or Wildcards (*) are not supported. + # Example: "bigquery.googleapis.com". + # Corresponds to the JSON property `serviceName` + # @return [String] + attr_accessor :service_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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + 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 + include Google::Apis::Core::Hashable + + # Array of observed CloudAuditLogConditions, indicating the current state + # of the CloudAuditLog. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # ObservedGeneration is the 'Generation' of the CloudAuditLog 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 + # CloudEventOverrides defines arguments for a Source that control the output # format of the CloudEvents produced by the Source. class CloudEventOverrides @@ -1810,6 +1975,51 @@ module Google end end + # ListCloudAuditLogsResponse is a list of CloudAuditLog resources. + class ListCloudAuditLogsResponse + 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 CloudAuditLogs. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "CloudAuditLogList". + # 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 + # ListConfigurationsResponse is a list of Configuration resources. class ListConfigurationsResponse include Google::Apis::Core::Hashable @@ -2201,6 +2411,51 @@ module Google end end + # ListStoragesResponse is a list of Storage resources. + class ListStoragesResponse + 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 Storages. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # The kind of this resource, in this case "StorageList". + # 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 + # ListTriggersResponse is a list of Trigger resources. class ListTriggersResponse include Google::Apis::Core::Hashable @@ -2955,6 +3210,15 @@ module Google # @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` @@ -2982,6 +3246,7 @@ module Google @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 @@ -4363,6 +4628,165 @@ module Google end end + # + class Storage + 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 "Storage". + # 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 Storage. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::RunV1alpha1::StorageSpec] + attr_accessor :spec + + # StorageStatus represents the current state of a Storage. + # Corresponds to the JSON property `status` + # @return [Google::Apis::RunV1alpha1::StorageStatus] + 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 Storage. + class StorageSpec + include Google::Apis::Core::Hashable + + # Bucket to subscribe to. + # Corresponds to the JSON property `bucket` + # @return [String] + attr_accessor :bucket + + # 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 + + # EventTypes to subscribe to. If unspecified, then subscribe to all events. + # +optional + # Corresponds to the JSON property `eventTypes` + # @return [Array] + attr_accessor :event_types + + # ObjectNamePrefix limits the notifications to objects with this prefix + # +optional + # Corresponds to the JSON property `objectNamePrefix` + # @return [String] + attr_accessor :object_name_prefix + + # PayloadFormat specifies the contents of the message payload. + # See https://cloud.google.com/storage/docs/pubsub-notifications#payload. + # +optional + # Corresponds to the JSON property `payloadFormat` + # @return [String] + attr_accessor :payload_format + + # 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 + + # 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 + + # ServiceAccountName holds the name of the Kubernetes service account + # as which the underlying K8s resources should be run. If unspecified + # this will default to the "default" service account for the namespace + # in which the GCS exists. + # +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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket = args[:bucket] if args.key?(:bucket) + @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) + @event_types = args[:event_types] if args.key?(:event_types) + @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix) + @payload_format = args[:payload_format] if args.key?(:payload_format) + @project = args[:project] if args.key?(:project) + @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) + @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) + end + end + + # StorageStatus represents the current state of a Storage. + class StorageStatus + include Google::Apis::Core::Hashable + + # Array of observed StorageConditions, indicating the current state + # of the Storage. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + + # ObservedGeneration is the 'Generation' of the Storage that + # was last processed by the controller. + # Corresponds to the JSON property `observedGeneration` + # @return [Fixnum] + attr_accessor :observed_generation + + 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) + end + end + # class SubscriberSpec include Google::Apis::Core::Hashable diff --git a/generated/google/apis/run_v1alpha1/representations.rb b/generated/google/apis/run_v1alpha1/representations.rb index ec82df104..bd93f9559 100644 --- a/generated/google/apis/run_v1alpha1/representations.rb +++ b/generated/google/apis/run_v1alpha1/representations.rb @@ -58,6 +58,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudAuditLog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudAuditLogSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudAuditLogStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CloudEventOverrides class Representation < Google::Apis::Core::JsonRepresentation; end @@ -268,6 +286,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListCloudAuditLogsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListConfigurationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,6 +346,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListStoragesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListTriggersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -544,6 +574,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Storage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StorageSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StorageStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SubscriberSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -685,6 +733,49 @@ module Google end end + class CloudAuditLog + # @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 :status, as: 'status', class: Google::Apis::RunV1alpha1::CloudAuditLogStatus, decorator: Google::Apis::RunV1alpha1::CloudAuditLogStatus::Representation + + end + end + + class CloudAuditLogSpec + # @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 + + end + end + + class CloudAuditLogStatus + # @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 CloudEventOverrides # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1070,6 +1161,19 @@ module Google end end + class ListCloudAuditLogsResponse + # @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 + + 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 ListConfigurationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1179,6 +1283,19 @@ module Google end end + class ListStoragesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' + collection :items, as: 'items', class: Google::Apis::RunV1alpha1::Storage, decorator: Google::Apis::RunV1alpha1::Storage::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 ListTriggersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1311,6 +1428,7 @@ module Google 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' @@ -1634,6 +1752,49 @@ module Google end end + class Storage + # @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::StorageSpec, decorator: Google::Apis::RunV1alpha1::StorageSpec::Representation + + property :status, as: 'status', class: Google::Apis::RunV1alpha1::StorageStatus, decorator: Google::Apis::RunV1alpha1::StorageStatus::Representation + + end + end + + class StorageSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket, as: 'bucket' + property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation + + collection :event_types, as: 'eventTypes' + property :object_name_prefix, as: 'objectNamePrefix' + property :payload_format, as: 'payloadFormat' + property :project, as: 'project' + property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation + + 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 + + end + end + + class StorageStatus + # @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' + end + end + class SubscriberSpec # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/run_v1alpha1/service.rb b/generated/google/apis/run_v1alpha1/service.rb index a57f1a87d..5772bb09a 100644 --- a/generated/google/apis/run_v1alpha1/service.rb +++ b/generated/google/apis/run_v1alpha1/service.rb @@ -84,6 +84,210 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new cloudauditlog. + # @param [String] parent + # The project ID or project number in which this cloudauditlog should + # be created. + # @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 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 + 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. + # @param [String] name + # The name of the cloudauditlog 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_cloudauditlog(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 cloudauditlog. + # @param [String] name + # The name of the cloudauditlog 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::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 get_namespace_cloudauditlog(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.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. + # @param [String] parent + # The project ID or project number from which the cloudauditlogs 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::ListCloudAuditLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse] + # + # @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 + 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 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 @@ -1071,6 +1275,210 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new storage. + # @param [String] parent + # The project ID or project number in which this storage should + # be created. + # @param [Google::Apis::RunV1alpha1::Storage] storage_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::Storage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Storage] + # + # @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_storage(parent, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/storages', options) + command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.request_object = storage_object + command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.response_class = Google::Apis::RunV1alpha1::Storage + 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 storage. + # @param [String] name + # The name of the storage 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_storage(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 storage. + # @param [String] name + # The name of the storage 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::Storage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Storage] + # + # @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_storage(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::Storage::Representation + command.response_class = Google::Apis::RunV1alpha1::Storage + 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 storages. + # @param [String] parent + # The project ID or project number from which the storages 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::ListStoragesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListStoragesResponse] + # + # @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_storages(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}/storages', options) + command.response_representation = Google::Apis::RunV1alpha1::ListStoragesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListStoragesResponse + 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 storage. + # 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 storage being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1alpha1::Storage] storage_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::Storage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Storage] + # + # @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_storage_storage(name, storage_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::Storage::Representation + command.request_object = storage_object + command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.response_class = Google::Apis::RunV1alpha1::Storage + 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 + # Creates a new trigger. # @param [String] parent # The project ID or project number in which this trigger should @@ -1350,6 +1758,210 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new cloudauditlog. + # @param [String] parent + # The project ID or project number in which this cloudauditlog should + # be created. + # @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 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 + 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. + # @param [String] name + # The name of the cloudauditlog 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_cloudauditlog(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 cloudauditlog. + # @param [String] name + # The name of the cloudauditlog 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::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 get_project_location_cloudauditlog(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.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. + # @param [String] parent + # The project ID or project number from which the cloudauditlogs 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::ListCloudAuditLogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListCloudAuditLogsResponse] + # + # @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 + 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 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 @@ -2447,6 +3059,210 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new storage. + # @param [String] parent + # The project ID or project number in which this storage should + # be created. + # @param [Google::Apis::RunV1alpha1::Storage] storage_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::Storage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Storage] + # + # @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_storage(parent, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/storages', options) + command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.request_object = storage_object + command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.response_class = Google::Apis::RunV1alpha1::Storage + 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 storage. + # @param [String] name + # The name of the storage 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_storage(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 storage. + # @param [String] name + # The name of the storage 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::Storage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Storage] + # + # @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_storage(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.response_class = Google::Apis::RunV1alpha1::Storage + 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 storages. + # @param [String] parent + # The project ID or project number from which the storages 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::ListStoragesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::ListStoragesResponse] + # + # @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_storages(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}/storages', options) + command.response_representation = Google::Apis::RunV1alpha1::ListStoragesResponse::Representation + command.response_class = Google::Apis::RunV1alpha1::ListStoragesResponse + 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 storage. + # 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 storage being retrieved. If needed, replace + # `namespace_id` with the project ID. + # @param [Google::Apis::RunV1alpha1::Storage] storage_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::Storage] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RunV1alpha1::Storage] + # + # @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_storage_storage(name, storage_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1alpha1/{+name}', options) + command.request_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.request_object = storage_object + command.response_representation = Google::Apis::RunV1alpha1::Storage::Representation + command.response_class = Google::Apis::RunV1alpha1::Storage + 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 + # Creates a new trigger. # @param [String] parent # The project ID or project number in which this trigger should diff --git a/generated/google/apis/run_v1beta1.rb b/generated/google/apis/run_v1beta1.rb index 912c44176..a0a232a29 100644 --- a/generated/google/apis/run_v1beta1.rb +++ b/generated/google/apis/run_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1beta1 VERSION = 'V1beta1' - REVISION = '20190927' + REVISION = '20191216' end end end diff --git a/generated/google/apis/run_v1beta1/classes.rb b/generated/google/apis/run_v1beta1/classes.rb index 99103cb85..cfc04d0d6 100644 --- a/generated/google/apis/run_v1beta1/classes.rb +++ b/generated/google/apis/run_v1beta1/classes.rb @@ -95,7 +95,7 @@ module Google # @return [String] attr_accessor :api_version - # The kind of resource, one example is "Storage". + # The kind of resource, in this case always "CustomResourceDefinition". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index d54decca8..3f3de925a 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20191204' + REVISION = '20191213' # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index 301a42676..ea2c26522 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -487,7 +487,21 @@ module Google # @return [Float] attr_accessor :deadline - # The JWT audience is used when generating a JWT id token for the backend. + # When disable_auth is false, a JWT ID token will be generated with the + # value from BackendRule.address as jwt_audience, overrode to the HTTP + # "Authorization" request header and sent to the backend. + # When disable_auth is true, a JWT ID token won't be generated and the + # original "Authorization" HTTP header will be preserved. If the header is + # used to carry the original token and is expected by the backend, this + # field must be set to true to preserve the header. + # Corresponds to the JSON property `disableAuth` + # @return [Boolean] + attr_accessor :disable_auth + alias_method :disable_auth?, :disable_auth + + # The JWT audience is used when generating a JWT ID token for the backend. + # This ID token will be added in the HTTP "authorization" header, and sent + # to the backend. # Corresponds to the JSON property `jwtAudience` # @return [String] attr_accessor :jwt_audience @@ -523,6 +537,7 @@ module Google def update!(**args) @address = args[:address] if args.key?(:address) @deadline = args[:deadline] if args.key?(:deadline) + @disable_auth = args[:disable_auth] if args.key?(:disable_auth) @jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience) @min_deadline = args[:min_deadline] if args.key?(:min_deadline) @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index 92312b710..9fc1f78e3 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -645,6 +645,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :address, as: 'address' property :deadline, as: 'deadline' + property :disable_auth, as: 'disableAuth' property :jwt_audience, as: 'jwtAudience' property :min_deadline, as: 'minDeadline' property :operation_deadline, as: 'operationDeadline'