google-api-client 0.50.0 → 0.51.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-please.yml +3 -1
- data/CHANGELOG.md +127 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +50 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +18 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +3 -1
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1beta.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +24 -8
- data/generated/google/apis/analyticsdata_v1alpha.rb +2 -2
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +93 -28
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +2 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +5 -5
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +4 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +69 -4
- data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +4 -4
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +7 -7
- data/generated/google/apis/apigee_v1/service.rb +8 -7
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
- data/generated/google/apis/area120tables_v1alpha1.rb +4 -1
- data/generated/google/apis/artifactregistry_v1beta2.rb +38 -0
- data/generated/google/apis/artifactregistry_v1beta2/classes.rb +1037 -0
- data/generated/google/apis/artifactregistry_v1beta2/representations.rb +443 -0
- data/generated/google/apis/artifactregistry_v1beta2/service.rb +944 -0
- data/generated/google/apis/{assuredworkloads_v1beta1.rb → assuredworkloads_v1.rb} +6 -6
- data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/classes.rb +49 -137
- data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/representations.rb +27 -87
- data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/service.rb +46 -46
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +0 -6
- data/generated/google/apis/binaryauthorization_v1/representations.rb +0 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -7
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +0 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/service.rb +176 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +6 -3
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/service.rb +8 -4
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +0 -6
- data/generated/google/apis/cloudiot_v1/representations.rb +0 -1
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +10 -5
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +0 -6
- data/generated/google/apis/cloudtasks_v2/representations.rb +0 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +0 -6
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +0 -6
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +0 -1
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +123 -0
- data/generated/google/apis/composer_v1/representations.rb +49 -0
- data/generated/google/apis/composer_v1/service.rb +19 -15
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +109 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +46 -0
- data/generated/google/apis/composer_v1beta1/service.rb +39 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +7 -2
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +691 -544
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +0 -6
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +0 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2 -7
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +0 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +4 -4
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +175 -4
- data/generated/google/apis/content_v2_1/representations.rb +78 -0
- data/generated/google/apis/content_v2_1/service.rb +179 -0
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +0 -6
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +0 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +17 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +78 -6
- data/generated/google/apis/dataproc_v1/representations.rb +22 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +46 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +18 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +0 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +0 -6
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +15 -647
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -299
- data/generated/google/apis/dialogflow_v2/service.rb +12 -4
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +13 -650
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -299
- data/generated/google/apis/dialogflow_v2beta1/service.rb +496 -32
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +15 -647
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +1 -299
- data/generated/google/apis/dialogflow_v3beta1/service.rb +10 -2
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +97 -3
- data/generated/google/apis/displayvideo_v1/representations.rb +45 -0
- data/generated/google/apis/displayvideo_v1/service.rb +103 -39
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +6 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +6 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +4 -1
- data/generated/google/apis/drive_v2/service.rb +24 -56
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +4 -1
- data/generated/google/apis/drive_v3/service.rb +14 -30
- data/generated/google/apis/eventarc_v1beta1.rb +1 -1
- data/generated/google/apis/eventarc_v1beta1/classes.rb +0 -6
- data/generated/google/apis/eventarc_v1beta1/representations.rb +0 -1
- data/generated/google/apis/firebasedatabase_v1beta.rb +44 -0
- data/generated/google/apis/firebasedatabase_v1beta/classes.rb +130 -0
- data/generated/google/apis/firebasedatabase_v1beta/representations.rb +82 -0
- data/generated/google/apis/firebasedatabase_v1beta/service.rb +292 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +67 -14
- data/generated/google/apis/games_v1/representations.rb +31 -2
- data/generated/google/apis/games_v1/service.rb +33 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +9 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +18 -17
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -17
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +101 -0
- data/generated/google/apis/iam_v1/representations.rb +33 -0
- data/generated/google/apis/iam_v1/service.rb +62 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +9 -807
- data/generated/google/apis/jobs_v3/representations.rb +0 -272
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -768
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +0 -257
- data/generated/google/apis/{jobs_v2.rb → jobs_v4.rb} +6 -6
- data/generated/google/apis/jobs_v4/classes.rb +2699 -0
- data/generated/google/apis/jobs_v4/representations.rb +934 -0
- data/generated/google/apis/jobs_v4/service.rb +903 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +26 -8
- data/generated/google/apis/licensing_v1/representations.rb +12 -0
- data/generated/google/apis/licensing_v1/service.rb +32 -29
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +25 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +15 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +5 -4
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +16 -11
- data/generated/google/apis/managedidentities_v1/representations.rb +0 -1
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +18 -12
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +0 -1
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +4 -7
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +0 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +0 -6
- data/generated/google/apis/ml_v1/representations.rb +0 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +5 -4
- data/generated/google/apis/monitoring_v3/service.rb +5 -4
- data/generated/google/apis/notebooks_v1.rb +1 -1
- data/generated/google/apis/notebooks_v1/classes.rb +0 -6
- data/generated/google/apis/notebooks_v1/representations.rb +0 -1
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +419 -0
- data/generated/google/apis/osconfig_v1/representations.rb +168 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +419 -0
- data/generated/google/apis/osconfig_v1beta/representations.rb +168 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/service.rb +3 -3
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +6 -2
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +0 -6
- data/generated/google/apis/pubsub_v1/representations.rb +0 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -6
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -1
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +2 -2
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +2 -2
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +5 -30
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -16
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -30
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -16
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -30
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -16
- data/generated/google/apis/reseller_v1.rb +4 -4
- data/generated/google/apis/reseller_v1/service.rb +5 -5
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +2 -1
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +2 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +91 -0
- data/generated/google/apis/securitycenter_v1/representations.rb +37 -0
- data/generated/google/apis/securitycenter_v1/service.rb +1448 -414
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +68 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +32 -0
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +68 -0
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +32 -0
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +0 -6
- data/generated/google/apis/servicedirectory_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +56 -3
- data/generated/google/apis/servicenetworking_v1/representations.rb +19 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +36 -3
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +309 -0
- data/generated/google/apis/sheets_v4/representations.rb +99 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +9 -6
- data/generated/google/apis/spanner_v1/representations.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +22 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +90 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +34 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -0
- data/generated/google/apis/storage_v1/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +14 -16
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +76 -0
- data/generated/google/apis/vault_v1/representations.rb +45 -0
- data/generated/google/apis/vectortile_v1.rb +1 -1
- data/generated/google/apis/vectortile_v1/classes.rb +59 -4
- data/generated/google/apis/vectortile_v1/representations.rb +19 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +65 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +15 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +19 -11
- data/generated/google/apis/jobs_v2/classes.rb +0 -4012
- data/generated/google/apis/jobs_v2/representations.rb +0 -1396
- data/generated/google/apis/jobs_v2/service.rb +0 -693
@@ -19,15 +19,15 @@ require 'google/apis/errors'
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
|
-
module
|
22
|
+
module AssuredworkloadsV1
|
23
23
|
# Assured Workloads API
|
24
24
|
#
|
25
25
|
#
|
26
26
|
#
|
27
27
|
# @example
|
28
|
-
# require 'google/apis/
|
28
|
+
# require 'google/apis/assuredworkloads_v1'
|
29
29
|
#
|
30
|
-
# Assuredworkloads = Google::Apis::
|
30
|
+
# Assuredworkloads = Google::Apis::AssuredworkloadsV1 # Alias the module
|
31
31
|
# service = Assuredworkloads::AssuredworkloadsService.new
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com
|
@@ -60,18 +60,18 @@ module Google
|
|
60
60
|
# Request-specific options
|
61
61
|
#
|
62
62
|
# @yield [result, err] Result & error if block supplied
|
63
|
-
# @yieldparam result [Google::Apis::
|
63
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation] parsed result object
|
64
64
|
# @yieldparam err [StandardError] error object if request failed
|
65
65
|
#
|
66
|
-
# @return [Google::Apis::
|
66
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation]
|
67
67
|
#
|
68
68
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
69
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
70
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
71
|
def get_organization_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
72
|
-
command = make_simple_command(:get, '
|
73
|
-
command.response_representation = Google::Apis::
|
74
|
-
command.response_class = Google::Apis::
|
72
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
73
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation::Representation
|
74
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation
|
75
75
|
command.params['name'] = name unless name.nil?
|
76
76
|
command.query['fields'] = fields unless fields.nil?
|
77
77
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -103,18 +103,18 @@ module Google
|
|
103
103
|
# Request-specific options
|
104
104
|
#
|
105
105
|
# @yield [result, err] Result & error if block supplied
|
106
|
-
# @yieldparam result [Google::Apis::
|
106
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleLongrunningListOperationsResponse] parsed result object
|
107
107
|
# @yieldparam err [StandardError] error object if request failed
|
108
108
|
#
|
109
|
-
# @return [Google::Apis::
|
109
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleLongrunningListOperationsResponse]
|
110
110
|
#
|
111
111
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
112
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
113
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
114
|
def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
-
command = make_simple_command(:get, '
|
116
|
-
command.response_representation = Google::Apis::
|
117
|
-
command.response_class = Google::Apis::
|
115
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
116
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleLongrunningListOperationsResponse::Representation
|
117
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleLongrunningListOperationsResponse
|
118
118
|
command.params['name'] = name unless name.nil?
|
119
119
|
command.query['filter'] = filter unless filter.nil?
|
120
120
|
command.query['pageSize'] = page_size unless page_size.nil?
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
# @param [String] parent
|
129
129
|
# Required. The resource name of the new Workload's parent. Must be of the form `
|
130
130
|
# organizations/`org_id`/locations/`location_id``.
|
131
|
-
# @param [Google::Apis::
|
131
|
+
# @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload] google_cloud_assuredworkloads_v1_workload_object
|
132
132
|
# @param [String] external_id
|
133
133
|
# Optional. A identifier associated with the workload and underlying projects
|
134
134
|
# which allows for the break down of billing costs for a workload. The value
|
@@ -143,20 +143,20 @@ module Google
|
|
143
143
|
# Request-specific options
|
144
144
|
#
|
145
145
|
# @yield [result, err] Result & error if block supplied
|
146
|
-
# @yieldparam result [Google::Apis::
|
146
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation] parsed result object
|
147
147
|
# @yieldparam err [StandardError] error object if request failed
|
148
148
|
#
|
149
|
-
# @return [Google::Apis::
|
149
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation]
|
150
150
|
#
|
151
151
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
152
152
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
153
153
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
154
|
-
def create_organization_location_workload(parent,
|
155
|
-
command = make_simple_command(:post, '
|
156
|
-
command.request_representation = Google::Apis::
|
157
|
-
command.request_object =
|
158
|
-
command.response_representation = Google::Apis::
|
159
|
-
command.response_class = Google::Apis::
|
154
|
+
def create_organization_location_workload(parent, google_cloud_assuredworkloads_v1_workload_object = nil, external_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
155
|
+
command = make_simple_command(:post, 'v1/{+parent}/workloads', options)
|
156
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload::Representation
|
157
|
+
command.request_object = google_cloud_assuredworkloads_v1_workload_object
|
158
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation::Representation
|
159
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleLongrunningOperation
|
160
160
|
command.params['parent'] = parent unless parent.nil?
|
161
161
|
command.query['externalId'] = external_id unless external_id.nil?
|
162
162
|
command.query['fields'] = fields unless fields.nil?
|
@@ -182,18 +182,18 @@ module Google
|
|
182
182
|
# Request-specific options
|
183
183
|
#
|
184
184
|
# @yield [result, err] Result & error if block supplied
|
185
|
-
# @yieldparam result [Google::Apis::
|
185
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleProtobufEmpty] parsed result object
|
186
186
|
# @yieldparam err [StandardError] error object if request failed
|
187
187
|
#
|
188
|
-
# @return [Google::Apis::
|
188
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleProtobufEmpty]
|
189
189
|
#
|
190
190
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
191
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
192
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
193
|
def delete_organization_location_workload(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
|
194
|
-
command = make_simple_command(:delete, '
|
195
|
-
command.response_representation = Google::Apis::
|
196
|
-
command.response_class = Google::Apis::
|
194
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
195
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleProtobufEmpty::Representation
|
196
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleProtobufEmpty
|
197
197
|
command.params['name'] = name unless name.nil?
|
198
198
|
command.query['etag'] = etag unless etag.nil?
|
199
199
|
command.query['fields'] = fields unless fields.nil?
|
@@ -216,18 +216,18 @@ module Google
|
|
216
216
|
# Request-specific options
|
217
217
|
#
|
218
218
|
# @yield [result, err] Result & error if block supplied
|
219
|
-
# @yieldparam result [Google::Apis::
|
219
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload] parsed result object
|
220
220
|
# @yieldparam err [StandardError] error object if request failed
|
221
221
|
#
|
222
|
-
# @return [Google::Apis::
|
222
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload]
|
223
223
|
#
|
224
224
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
225
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
226
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
227
|
def get_organization_location_workload(name, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
-
command = make_simple_command(:get, '
|
229
|
-
command.response_representation = Google::Apis::
|
230
|
-
command.response_class = Google::Apis::
|
228
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
229
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload::Representation
|
230
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload
|
231
231
|
command.params['name'] = name unless name.nil?
|
232
232
|
command.query['fields'] = fields unless fields.nil?
|
233
233
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -256,18 +256,18 @@ module Google
|
|
256
256
|
# Request-specific options
|
257
257
|
#
|
258
258
|
# @yield [result, err] Result & error if block supplied
|
259
|
-
# @yieldparam result [Google::Apis::
|
259
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadsResponse] parsed result object
|
260
260
|
# @yieldparam err [StandardError] error object if request failed
|
261
261
|
#
|
262
|
-
# @return [Google::Apis::
|
262
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadsResponse]
|
263
263
|
#
|
264
264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
267
|
def list_organization_location_workloads(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
-
command = make_simple_command(:get, '
|
269
|
-
command.response_representation = Google::Apis::
|
270
|
-
command.response_class = Google::Apis::
|
268
|
+
command = make_simple_command(:get, 'v1/{+parent}/workloads', options)
|
269
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadsResponse::Representation
|
270
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ListWorkloadsResponse
|
271
271
|
command.params['parent'] = parent unless parent.nil?
|
272
272
|
command.query['filter'] = filter unless filter.nil?
|
273
273
|
command.query['pageSize'] = page_size unless page_size.nil?
|
@@ -283,7 +283,7 @@ module Google
|
|
283
283
|
# @param [String] name
|
284
284
|
# Optional. The resource name of the workload. Format: organizations/`
|
285
285
|
# organization`/locations/`location`/workloads/`workload` Read-only.
|
286
|
-
# @param [Google::Apis::
|
286
|
+
# @param [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload] google_cloud_assuredworkloads_v1_workload_object
|
287
287
|
# @param [String] update_mask
|
288
288
|
# Required. The list of fields to be updated.
|
289
289
|
# @param [String] fields
|
@@ -295,20 +295,20 @@ module Google
|
|
295
295
|
# Request-specific options
|
296
296
|
#
|
297
297
|
# @yield [result, err] Result & error if block supplied
|
298
|
-
# @yieldparam result [Google::Apis::
|
298
|
+
# @yieldparam result [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload] parsed result object
|
299
299
|
# @yieldparam err [StandardError] error object if request failed
|
300
300
|
#
|
301
|
-
# @return [Google::Apis::
|
301
|
+
# @return [Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload]
|
302
302
|
#
|
303
303
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
304
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
305
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
-
def patch_organization_location_workload(name,
|
307
|
-
command = make_simple_command(:patch, '
|
308
|
-
command.request_representation = Google::Apis::
|
309
|
-
command.request_object =
|
310
|
-
command.response_representation = Google::Apis::
|
311
|
-
command.response_class = Google::Apis::
|
306
|
+
def patch_organization_location_workload(name, google_cloud_assuredworkloads_v1_workload_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
308
|
+
command.request_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload::Representation
|
309
|
+
command.request_object = google_cloud_assuredworkloads_v1_workload_object
|
310
|
+
command.response_representation = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload::Representation
|
311
|
+
command.response_class = Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload
|
312
312
|
command.params['name'] = name unless name.nil?
|
313
313
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
314
314
|
command.query['fields'] = fields unless fields.nil?
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/binary-authorization/
|
27
27
|
module BinaryauthorizationV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20201113'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -224,11 +224,6 @@ module Google
|
|
224
224
|
class Binding
|
225
225
|
include Google::Apis::Core::Hashable
|
226
226
|
|
227
|
-
#
|
228
|
-
# Corresponds to the JSON property `bindingId`
|
229
|
-
# @return [String]
|
230
|
-
attr_accessor :binding_id
|
231
|
-
|
232
227
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
233
228
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
234
229
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -290,7 +285,6 @@ module Google
|
|
290
285
|
|
291
286
|
# Update properties of this object
|
292
287
|
def update!(**args)
|
293
|
-
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
294
288
|
@condition = args[:condition] if args.key?(:condition)
|
295
289
|
@members = args[:members] if args.key?(:members)
|
296
290
|
@role = args[:role] if args.key?(:role)
|
@@ -194,7 +194,6 @@ module Google
|
|
194
194
|
class Binding
|
195
195
|
# @private
|
196
196
|
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
-
property :binding_id, as: 'bindingId'
|
198
197
|
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1::Expr, decorator: Google::Apis::BinaryauthorizationV1::Expr::Representation
|
199
198
|
|
200
199
|
collection :members, as: 'members'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/binary-authorization/
|
27
27
|
module BinaryauthorizationV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20201113'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -68,7 +68,8 @@ module Google
|
|
68
68
|
|
69
69
|
# An image name pattern to allowlist, in the form `registry/path/to/image`. This
|
70
70
|
# supports a trailing `*` as a wildcard, but this is allowed only in text after
|
71
|
-
# the `registry/` part.
|
71
|
+
# the `registry/` part. Also wildcards do not match `/`, i.e., gcr.io/nginx*
|
72
|
+
# matches gcr.io/nginx@latest, but it does not match gcr.io/nginx/image.
|
72
73
|
# Corresponds to the JSON property `namePattern`
|
73
74
|
# @return [String]
|
74
75
|
attr_accessor :name_pattern
|
@@ -224,11 +225,6 @@ module Google
|
|
224
225
|
class Binding
|
225
226
|
include Google::Apis::Core::Hashable
|
226
227
|
|
227
|
-
#
|
228
|
-
# Corresponds to the JSON property `bindingId`
|
229
|
-
# @return [String]
|
230
|
-
attr_accessor :binding_id
|
231
|
-
|
232
228
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
233
229
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
234
230
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -290,7 +286,6 @@ module Google
|
|
290
286
|
|
291
287
|
# Update properties of this object
|
292
288
|
def update!(**args)
|
293
|
-
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
294
289
|
@condition = args[:condition] if args.key?(:condition)
|
295
290
|
@members = args[:members] if args.key?(:members)
|
296
291
|
@role = args[:role] if args.key?(:role)
|
@@ -194,7 +194,6 @@ module Google
|
|
194
194
|
class Binding
|
195
195
|
# @private
|
196
196
|
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
-
property :binding_id, as: 'bindingId'
|
198
197
|
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1beta1::Expr, decorator: Google::Apis::BinaryauthorizationV1beta1::Expr::Representation
|
199
198
|
|
200
199
|
collection :members, as: 'members'
|
@@ -47,6 +47,94 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
+
# Legacy path for creating message. Calling these will result in a BadRequest
|
51
|
+
# response.
|
52
|
+
# @param [String] parent
|
53
|
+
# Required. Space resource name, in the form "spaces/*". Example: spaces/
|
54
|
+
# AAAAMpdlehY
|
55
|
+
# @param [Google::Apis::ChatV1::Message] message_object
|
56
|
+
# @param [String] thread_key
|
57
|
+
# Opaque thread identifier string that can be specified to group messages into a
|
58
|
+
# single thread. If this is the first message with a given thread identifier, a
|
59
|
+
# new thread is created. Subsequent messages with the same thread identifier
|
60
|
+
# will be posted into the same thread. This relieves bots and webhooks from
|
61
|
+
# having to store the Hangouts Chat thread ID of a thread (created earlier by
|
62
|
+
# them) to post further updates to it. Has no effect if thread field,
|
63
|
+
# corresponding to an existing thread, is set in message.
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::ChatV1::Message]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def messages_dm(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
83
|
+
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
84
|
+
command.request_object = message_object
|
85
|
+
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
86
|
+
command.response_class = Google::Apis::ChatV1::Message
|
87
|
+
command.params['parent'] = parent unless parent.nil?
|
88
|
+
command.query['threadKey'] = thread_key unless thread_key.nil?
|
89
|
+
command.query['fields'] = fields unless fields.nil?
|
90
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
91
|
+
execute_or_queue_command(command, &block)
|
92
|
+
end
|
93
|
+
|
94
|
+
# Legacy path for creating message. Calling these will result in a BadRequest
|
95
|
+
# response.
|
96
|
+
# @param [String] parent
|
97
|
+
# Required. Space resource name, in the form "spaces/*". Example: spaces/
|
98
|
+
# AAAAMpdlehY
|
99
|
+
# @param [Google::Apis::ChatV1::Message] message_object
|
100
|
+
# @param [String] thread_key
|
101
|
+
# Opaque thread identifier string that can be specified to group messages into a
|
102
|
+
# single thread. If this is the first message with a given thread identifier, a
|
103
|
+
# new thread is created. Subsequent messages with the same thread identifier
|
104
|
+
# will be posted into the same thread. This relieves bots and webhooks from
|
105
|
+
# having to store the Hangouts Chat thread ID of a thread (created earlier by
|
106
|
+
# them) to post further updates to it. Has no effect if thread field,
|
107
|
+
# corresponding to an existing thread, is set in message.
|
108
|
+
# @param [String] fields
|
109
|
+
# Selector specifying which fields to include in a partial response.
|
110
|
+
# @param [String] quota_user
|
111
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
112
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
113
|
+
# @param [Google::Apis::RequestOptions] options
|
114
|
+
# Request-specific options
|
115
|
+
#
|
116
|
+
# @yield [result, err] Result & error if block supplied
|
117
|
+
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
|
118
|
+
# @yieldparam err [StandardError] error object if request failed
|
119
|
+
#
|
120
|
+
# @return [Google::Apis::ChatV1::Message]
|
121
|
+
#
|
122
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
123
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
124
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
125
|
+
def messages_dm_conversation(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
126
|
+
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
127
|
+
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
128
|
+
command.request_object = message_object
|
129
|
+
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
130
|
+
command.response_class = Google::Apis::ChatV1::Message
|
131
|
+
command.params['parent'] = parent unless parent.nil?
|
132
|
+
command.query['threadKey'] = thread_key unless thread_key.nil?
|
133
|
+
command.query['fields'] = fields unless fields.nil?
|
134
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
135
|
+
execute_or_queue_command(command, &block)
|
136
|
+
end
|
137
|
+
|
50
138
|
# Downloads media. Download is supported on the URI `/v1/media/`+name`?alt=media`
|
51
139
|
# .
|
52
140
|
# @param [String] resource_name
|
@@ -85,6 +173,94 @@ module Google
|
|
85
173
|
execute_or_queue_command(command, &block)
|
86
174
|
end
|
87
175
|
|
176
|
+
# Legacy path for creating message. Calling these will result in a BadRequest
|
177
|
+
# response.
|
178
|
+
# @param [String] parent
|
179
|
+
# Required. Space resource name, in the form "spaces/*". Example: spaces/
|
180
|
+
# AAAAMpdlehY
|
181
|
+
# @param [Google::Apis::ChatV1::Message] message_object
|
182
|
+
# @param [String] thread_key
|
183
|
+
# Opaque thread identifier string that can be specified to group messages into a
|
184
|
+
# single thread. If this is the first message with a given thread identifier, a
|
185
|
+
# new thread is created. Subsequent messages with the same thread identifier
|
186
|
+
# will be posted into the same thread. This relieves bots and webhooks from
|
187
|
+
# having to store the Hangouts Chat thread ID of a thread (created earlier by
|
188
|
+
# them) to post further updates to it. Has no effect if thread field,
|
189
|
+
# corresponding to an existing thread, is set in message.
|
190
|
+
# @param [String] fields
|
191
|
+
# Selector specifying which fields to include in a partial response.
|
192
|
+
# @param [String] quota_user
|
193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
195
|
+
# @param [Google::Apis::RequestOptions] options
|
196
|
+
# Request-specific options
|
197
|
+
#
|
198
|
+
# @yield [result, err] Result & error if block supplied
|
199
|
+
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
|
200
|
+
# @yieldparam err [StandardError] error object if request failed
|
201
|
+
#
|
202
|
+
# @return [Google::Apis::ChatV1::Message]
|
203
|
+
#
|
204
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
205
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
206
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
207
|
+
def messages_room(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
208
|
+
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
209
|
+
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
210
|
+
command.request_object = message_object
|
211
|
+
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
212
|
+
command.response_class = Google::Apis::ChatV1::Message
|
213
|
+
command.params['parent'] = parent unless parent.nil?
|
214
|
+
command.query['threadKey'] = thread_key unless thread_key.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Legacy path for creating message. Calling these will result in a BadRequest
|
221
|
+
# response.
|
222
|
+
# @param [String] parent
|
223
|
+
# Required. Space resource name, in the form "spaces/*". Example: spaces/
|
224
|
+
# AAAAMpdlehY
|
225
|
+
# @param [Google::Apis::ChatV1::Message] message_object
|
226
|
+
# @param [String] thread_key
|
227
|
+
# Opaque thread identifier string that can be specified to group messages into a
|
228
|
+
# single thread. If this is the first message with a given thread identifier, a
|
229
|
+
# new thread is created. Subsequent messages with the same thread identifier
|
230
|
+
# will be posted into the same thread. This relieves bots and webhooks from
|
231
|
+
# having to store the Hangouts Chat thread ID of a thread (created earlier by
|
232
|
+
# them) to post further updates to it. Has no effect if thread field,
|
233
|
+
# corresponding to an existing thread, is set in message.
|
234
|
+
# @param [String] fields
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
236
|
+
# @param [String] quota_user
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
240
|
+
# Request-specific options
|
241
|
+
#
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
243
|
+
# @yieldparam result [Google::Apis::ChatV1::Message] parsed result object
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
245
|
+
#
|
246
|
+
# @return [Google::Apis::ChatV1::Message]
|
247
|
+
#
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
+
def messages_room_conversation(parent, message_object = nil, thread_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
252
|
+
command = make_simple_command(:post, 'v1/{+parent}/messages', options)
|
253
|
+
command.request_representation = Google::Apis::ChatV1::Message::Representation
|
254
|
+
command.request_object = message_object
|
255
|
+
command.response_representation = Google::Apis::ChatV1::Message::Representation
|
256
|
+
command.response_class = Google::Apis::ChatV1::Message
|
257
|
+
command.params['parent'] = parent unless parent.nil?
|
258
|
+
command.query['threadKey'] = thread_key unless thread_key.nil?
|
259
|
+
command.query['fields'] = fields unless fields.nil?
|
260
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
261
|
+
execute_or_queue_command(command, &block)
|
262
|
+
end
|
263
|
+
|
88
264
|
# Returns a space.
|
89
265
|
# @param [String] name
|
90
266
|
# Required. Resource name of the space, in the form "spaces/*". Example: spaces/
|