google-api-client 0.44.2 → 0.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/autoapprove.yml +49 -0
- data/.gitignore +2 -0
- data/CHANGELOG.md +295 -0
- data/api_list_config.yaml +8 -0
- data/bin/generate-api +77 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +25 -16
- data/generated/google/apis/accessapproval_v1/service.rb +27 -27
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
- data/generated/google/apis/admin_directory_v1/service.rb +72 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admob_v1.rb +6 -2
- data/generated/google/apis/admob_v1/classes.rb +31 -31
- data/generated/google/apis/admob_v1/service.rb +2 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +4 -1
- data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
- data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +32 -1
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +442 -14
- data/generated/google/apis/apigee_v1/representations.rb +161 -1
- data/generated/google/apis/apigee_v1/service.rb +264 -44
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +14 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +2 -0
- data/generated/google/apis/{apigateway_v1alpha1.rb → assuredworkloads_v1beta1.rb} +8 -8
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +140 -23
- data/generated/google/apis/bigquery_v2/representations.rb +36 -0
- data/generated/google/apis/bigquery_v2/service.rb +46 -0
- data/generated/google/apis/billingbudgets_v1.rb +38 -0
- data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
- data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +16 -6
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +2 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +79 -5
- data/generated/google/apis/chat_v1/representations.rb +35 -0
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +153 -21
- data/generated/google/apis/classroom_v1/representations.rb +43 -0
- data/generated/google/apis/classroom_v1/service.rb +240 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +7 -5
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +127 -63
- data/generated/google/apis/cloudidentity_v1/representations.rb +29 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +124 -70
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +188 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +179 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
- data/generated/google/apis/cloudshell_v1/service.rb +177 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +4 -4
- data/generated/google/apis/composer_v1beta1/service.rb +37 -35
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +633 -146
- data/generated/google/apis/compute_alpha/representations.rb +131 -8
- data/generated/google/apis/compute_alpha/service.rb +1995 -1013
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +566 -94
- data/generated/google/apis/compute_beta/representations.rb +100 -1
- data/generated/google/apis/compute_beta/service.rb +805 -136
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +336 -53
- data/generated/google/apis/compute_v1/representations.rb +57 -1
- data/generated/google/apis/compute_v1/service.rb +739 -133
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +22 -10
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +50 -10
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +108 -5
- data/generated/google/apis/content_v2_1/representations.rb +47 -0
- data/generated/google/apis/content_v2_1/service.rb +38 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +152 -5
- data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
- data/generated/google/apis/datafusion_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +29 -3
- data/generated/google/apis/dataproc_v1/representations.rb +15 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +33 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +208 -30
- data/generated/google/apis/dialogflow_v2/representations.rb +118 -7
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +215 -38
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +118 -7
- data/generated/google/apis/dialogflow_v2beta1/service.rb +60 -10
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +311 -33
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +153 -7
- data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +38 -30
- data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
- data/generated/google/apis/displayvideo_v1/service.rb +21 -18
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +30 -3
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +328 -328
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +181 -0
- data/generated/google/apis/dns_v1/representations.rb +83 -0
- data/generated/google/apis/dns_v1/service.rb +10 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +181 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
- data/generated/google/apis/dns_v1beta2/service.rb +10 -10
- data/generated/google/apis/documentai_v1beta3.rb +36 -0
- data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
- data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
- data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
- data/generated/google/apis/domains_v1alpha2.rb +34 -0
- data/generated/google/apis/domains_v1alpha2/classes.rb +1534 -0
- data/generated/google/apis/domains_v1alpha2/representations.rb +605 -0
- data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
- data/generated/google/apis/{appsactivity_v1.rb → domains_v1beta1.rb} +11 -11
- data/generated/google/apis/domains_v1beta1/classes.rb +1534 -0
- data/generated/google/apis/domains_v1beta1/representations.rb +605 -0
- data/generated/google/apis/domains_v1beta1/service.rb +805 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -3
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +4 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +4 -2
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +13 -1
- data/generated/google/apis/fitness_v1/service.rb +3 -1
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1/classes.rb +15 -14
- data/generated/google/apis/gameservices_v1/service.rb +54 -51
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +15 -14
- data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +7 -5
- data/generated/google/apis/healthcare_v1/service.rb +1 -3
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1111 -278
- data/generated/google/apis/healthcare_v1beta1/representations.rb +486 -68
- data/generated/google/apis/healthcare_v1beta1/service.rb +1475 -247
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/service.rb +2 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +798 -0
- data/generated/google/apis/jobs_v2/representations.rb +272 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +798 -0
- data/generated/google/apis/jobs_v3/representations.rb +272 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
- data/generated/google/apis/licensing_v1.rb +4 -3
- data/generated/google/apis/licensing_v1/classes.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +55 -85
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
- data/generated/google/apis/localservices_v1.rb +1 -1
- data/generated/google/apis/localservices_v1/service.rb +20 -20
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +98 -55
- data/generated/google/apis/logging_v2/representations.rb +32 -0
- data/generated/google/apis/logging_v2/service.rb +1214 -264
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
- data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
- data/generated/google/apis/managedidentities_v1/service.rb +1 -4
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -9
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -1
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -9
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -1
- data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +10 -10
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +99 -45
- data/generated/google/apis/monitoring_v3/representations.rb +18 -0
- data/generated/google/apis/monitoring_v3/service.rb +5 -5
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
- data/generated/google/apis/{plus_v1.rb → oauth2_v2.rb} +12 -15
- data/generated/google/apis/oauth2_v2/classes.rb +165 -0
- data/generated/google/apis/oauth2_v2/representations.rb +68 -0
- data/generated/google/apis/oauth2_v2/service.rb +158 -0
- data/generated/google/apis/osconfig_v1.rb +3 -3
- data/generated/google/apis/osconfig_v1/service.rb +4 -4
- data/generated/google/apis/osconfig_v1beta.rb +3 -3
- data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +48 -47
- data/generated/google/apis/people_v1/service.rb +12 -10
- data/generated/google/apis/playablelocations_v3.rb +1 -1
- data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
- data/generated/google/apis/poly_v1.rb +3 -4
- data/generated/google/apis/poly_v1/classes.rb +65 -79
- data/generated/google/apis/poly_v1/service.rb +50 -63
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
- data/generated/google/apis/pubsublite_v1.rb +1 -1
- data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
- data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
- data/generated/google/apis/pubsublite_v1/service.rb +33 -0
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
- data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
- data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/service.rb +4 -2
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +5 -391
- data/generated/google/apis/redis_v1/representations.rb +0 -139
- data/generated/google/apis/redis_v1/service.rb +2 -2
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +33 -391
- data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
- data/generated/google/apis/redis_v1beta1/service.rb +36 -2
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/classes.rb +151 -219
- data/generated/google/apis/reseller_v1/service.rb +122 -173
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +15 -135
- data/generated/google/apis/run_v1/representations.rb +0 -61
- data/generated/google/apis/run_v1/service.rb +0 -342
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
- data/generated/google/apis/searchconsole_v1.rb +7 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
- data/generated/google/apis/searchconsole_v1/service.rb +287 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -4
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +5 -3
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
- data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +107 -4
- data/generated/google/apis/servicenetworking_v1/representations.rb +34 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +2 -2
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +107 -4
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +34 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +175 -85
- data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +307 -0
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +173 -0
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +309 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
- data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +7 -0
- data/generated/google/apis/spanner_v1/representations.rb +1 -0
- data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +229 -109
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +137 -87
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -10
- data/generated/google/apis/storage_v1/representations.rb +0 -1
- data/generated/google/apis/storage_v1/service.rb +3 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +21 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +22 -20
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
- data/generated/google/apis/sts_v1.rb +1 -1
- data/generated/google/apis/sts_v1/classes.rb +10 -9
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +67 -67
- data/generated/google/apis/sts_v1beta/service.rb +2 -2
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +1 -1
- data/generated/google/apis/tasks_v1/service.rb +4 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -2
- data/generated/google/apis/testing_v1/representations.rb +20 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1/service.rb +8 -8
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +2 -2
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +333 -0
- data/generated/google/apis/vault_v1/representations.rb +162 -0
- data/generated/google/apis/vault_v1/service.rb +151 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +751 -28
- data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +751 -28
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +749 -26
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +734 -11
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +667 -28
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
- data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
- data/generated/google/apis/workflows_v1beta.rb +3 -2
- data/generated/google/apis/workflows_v1beta/service.rb +2 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +12 -945
- data/generated/google/apis/youtube_v3/representations.rb +0 -445
- data/generated/google/apis/youtube_v3/service.rb +3 -198
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/core/api_command.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- data/synth.py +40 -0
- metadata +41 -19
- data/generated/google/apis/apigateway_v1alpha1/classes.rb +0 -633
- data/generated/google/apis/apigateway_v1alpha1/representations.rb +0 -250
- data/generated/google/apis/apigateway_v1alpha1/service.rb +0 -623
- data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
- data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
- data/generated/google/apis/appsactivity_v1/service.rb +0 -126
- data/generated/google/apis/plus_v1/classes.rb +0 -2094
- data/generated/google/apis/plus_v1/representations.rb +0 -907
- data/generated/google/apis/plus_v1/service.rb +0 -451
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module SmartdevicemanagementV1
|
|
23
|
+
# Smart Device Management API
|
|
24
|
+
#
|
|
25
|
+
# Allow select enterprise partners to access, control, and manage Google and
|
|
26
|
+
# Nest devices programmatically.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/smartdevicemanagement_v1'
|
|
30
|
+
#
|
|
31
|
+
# Smartdevicemanagement = Google::Apis::SmartdevicemanagementV1 # Alias the module
|
|
32
|
+
# service = Smartdevicemanagement::SmartDeviceManagementService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://developers.google.com/nest/device-access
|
|
35
|
+
class SmartDeviceManagementService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
super('https://smartdevicemanagement.googleapis.com/', '')
|
|
48
|
+
@batch_path = 'batch'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Executes a command to device managed by the enterprise.
|
|
52
|
+
# @param [String] name
|
|
53
|
+
# The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
54
|
+
# @param [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest] google_home_enterprise_sdm_v1_execute_device_command_request_object
|
|
55
|
+
# @param [String] fields
|
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
|
57
|
+
# @param [String] quota_user
|
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61
|
+
# Request-specific options
|
|
62
|
+
#
|
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
|
64
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse] parsed result object
|
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
66
|
+
#
|
|
67
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse]
|
|
68
|
+
#
|
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
72
|
+
def execute_enterprise_device_command(name, google_home_enterprise_sdm_v1_execute_device_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
73
|
+
command = make_simple_command(:post, 'v1/{+name}:executeCommand', options)
|
|
74
|
+
command.request_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest::Representation
|
|
75
|
+
command.request_object = google_home_enterprise_sdm_v1_execute_device_command_request_object
|
|
76
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse::Representation
|
|
77
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse
|
|
78
|
+
command.params['name'] = name unless name.nil?
|
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
81
|
+
execute_or_queue_command(command, &block)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Gets a device managed by the enterprise.
|
|
85
|
+
# @param [String] name
|
|
86
|
+
# The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
|
87
|
+
# @param [String] fields
|
|
88
|
+
# Selector specifying which fields to include in a partial response.
|
|
89
|
+
# @param [String] quota_user
|
|
90
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
91
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
92
|
+
# @param [Google::Apis::RequestOptions] options
|
|
93
|
+
# Request-specific options
|
|
94
|
+
#
|
|
95
|
+
# @yield [result, err] Result & error if block supplied
|
|
96
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device] parsed result object
|
|
97
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
98
|
+
#
|
|
99
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device]
|
|
100
|
+
#
|
|
101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
104
|
+
def get_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
105
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
106
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device::Representation
|
|
107
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device
|
|
108
|
+
command.params['name'] = name unless name.nil?
|
|
109
|
+
command.query['fields'] = fields unless fields.nil?
|
|
110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
111
|
+
execute_or_queue_command(command, &block)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Lists devices managed by the enterprise.
|
|
115
|
+
# @param [String] parent
|
|
116
|
+
# The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
|
117
|
+
# @param [String] filter
|
|
118
|
+
# Optional filter to list devices. Filters can match the exact assignee (could
|
|
119
|
+
# be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also
|
|
120
|
+
# could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter
|
|
121
|
+
# by device custom name (substring match): 'customName=wing'
|
|
122
|
+
# @param [Fixnum] page_size
|
|
123
|
+
# Optional requested page size. Server may return fewer devices than requested.
|
|
124
|
+
# If unspecified, server will pick an appropriate default.
|
|
125
|
+
# @param [String] page_token
|
|
126
|
+
# Optional token of the page to retrieve.
|
|
127
|
+
# @param [String] fields
|
|
128
|
+
# Selector specifying which fields to include in a partial response.
|
|
129
|
+
# @param [String] quota_user
|
|
130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
133
|
+
# Request-specific options
|
|
134
|
+
#
|
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
|
136
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse] parsed result object
|
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
138
|
+
#
|
|
139
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse]
|
|
140
|
+
#
|
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
144
|
+
def list_enterprise_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
145
|
+
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
|
146
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse::Representation
|
|
147
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse
|
|
148
|
+
command.params['parent'] = parent unless parent.nil?
|
|
149
|
+
command.query['filter'] = filter unless filter.nil?
|
|
150
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
151
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
154
|
+
execute_or_queue_command(command, &block)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Gets a structure managed by the enterprise.
|
|
158
|
+
# @param [String] name
|
|
159
|
+
# The name of the structure requested. For example: "enterprises/XYZ/structures/
|
|
160
|
+
# ABC".
|
|
161
|
+
# @param [String] fields
|
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
|
163
|
+
# @param [String] quota_user
|
|
164
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
165
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
166
|
+
# @param [Google::Apis::RequestOptions] options
|
|
167
|
+
# Request-specific options
|
|
168
|
+
#
|
|
169
|
+
# @yield [result, err] Result & error if block supplied
|
|
170
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure] parsed result object
|
|
171
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
172
|
+
#
|
|
173
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure]
|
|
174
|
+
#
|
|
175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
178
|
+
def get_enterprise_structure(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
179
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
180
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure::Representation
|
|
181
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure
|
|
182
|
+
command.params['name'] = name unless name.nil?
|
|
183
|
+
command.query['fields'] = fields unless fields.nil?
|
|
184
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
185
|
+
execute_or_queue_command(command, &block)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Lists structures managed by the enterprise.
|
|
189
|
+
# @param [String] parent
|
|
190
|
+
# The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
|
191
|
+
# @param [String] filter
|
|
192
|
+
# Optional filter to list structures. Filters can match the exact album assigned
|
|
193
|
+
# to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support
|
|
194
|
+
# filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/
|
|
195
|
+
# 124'
|
|
196
|
+
# @param [Fixnum] page_size
|
|
197
|
+
# Requested page size. Server may return fewer structures than requested. If
|
|
198
|
+
# unspecified, server will pick an appropriate default.
|
|
199
|
+
# @param [String] page_token
|
|
200
|
+
# The token of the page to retrieve.
|
|
201
|
+
# @param [String] fields
|
|
202
|
+
# Selector specifying which fields to include in a partial response.
|
|
203
|
+
# @param [String] quota_user
|
|
204
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
205
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
206
|
+
# @param [Google::Apis::RequestOptions] options
|
|
207
|
+
# Request-specific options
|
|
208
|
+
#
|
|
209
|
+
# @yield [result, err] Result & error if block supplied
|
|
210
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse] parsed result object
|
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
212
|
+
#
|
|
213
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse]
|
|
214
|
+
#
|
|
215
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
216
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
217
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
218
|
+
def list_enterprise_structures(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
219
|
+
command = make_simple_command(:get, 'v1/{+parent}/structures', options)
|
|
220
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse::Representation
|
|
221
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse
|
|
222
|
+
command.params['parent'] = parent unless parent.nil?
|
|
223
|
+
command.query['filter'] = filter unless filter.nil?
|
|
224
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
225
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
226
|
+
command.query['fields'] = fields unless fields.nil?
|
|
227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
228
|
+
execute_or_queue_command(command, &block)
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Gets a room managed by the enterprise.
|
|
232
|
+
# @param [String] name
|
|
233
|
+
# The name of the room requested. For example: "enterprises/XYZ/structures/ABC/
|
|
234
|
+
# rooms/123".
|
|
235
|
+
# @param [String] fields
|
|
236
|
+
# Selector specifying which fields to include in a partial response.
|
|
237
|
+
# @param [String] quota_user
|
|
238
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
239
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
240
|
+
# @param [Google::Apis::RequestOptions] options
|
|
241
|
+
# Request-specific options
|
|
242
|
+
#
|
|
243
|
+
# @yield [result, err] Result & error if block supplied
|
|
244
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room] parsed result object
|
|
245
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
246
|
+
#
|
|
247
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room]
|
|
248
|
+
#
|
|
249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
252
|
+
def get_enterprise_structure_room(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
253
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
254
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room::Representation
|
|
255
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room
|
|
256
|
+
command.params['name'] = name unless name.nil?
|
|
257
|
+
command.query['fields'] = fields unless fields.nil?
|
|
258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
259
|
+
execute_or_queue_command(command, &block)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Lists rooms managed by the enterprise.
|
|
263
|
+
# @param [String] parent
|
|
264
|
+
# The parent resource name of the rooms requested. For example: "enterprises/XYZ/
|
|
265
|
+
# structures/ABC".
|
|
266
|
+
# @param [Fixnum] page_size
|
|
267
|
+
# Requested page size. Server may return fewer rooms than requested. If
|
|
268
|
+
# unspecified, server will pick an appropriate default.
|
|
269
|
+
# @param [String] page_token
|
|
270
|
+
# The token of the page to retrieve.
|
|
271
|
+
# @param [String] fields
|
|
272
|
+
# Selector specifying which fields to include in a partial response.
|
|
273
|
+
# @param [String] quota_user
|
|
274
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
275
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
276
|
+
# @param [Google::Apis::RequestOptions] options
|
|
277
|
+
# Request-specific options
|
|
278
|
+
#
|
|
279
|
+
# @yield [result, err] Result & error if block supplied
|
|
280
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse] parsed result object
|
|
281
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
282
|
+
#
|
|
283
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse]
|
|
284
|
+
#
|
|
285
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
286
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
287
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
288
|
+
def list_enterprise_structure_rooms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
289
|
+
command = make_simple_command(:get, 'v1/{+parent}/rooms', options)
|
|
290
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse::Representation
|
|
291
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse
|
|
292
|
+
command.params['parent'] = parent unless parent.nil?
|
|
293
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
294
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
295
|
+
command.query['fields'] = fields unless fields.nil?
|
|
296
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
297
|
+
execute_or_queue_command(command, &block)
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
protected
|
|
301
|
+
|
|
302
|
+
def apply_command_defaults(command)
|
|
303
|
+
command.query['key'] = key unless key.nil?
|
|
304
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
end
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/source-repositories/docs/apis
|
|
26
26
|
module SourcerepoV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200914'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -22,53 +22,21 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module SourcerepoV1
|
|
24
24
|
|
|
25
|
-
# Specifies the audit configuration for a service.
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# `
|
|
35
|
-
# "
|
|
36
|
-
# `
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
# "log_type": "DATA_READ",
|
|
41
|
-
# "exempted_members": [
|
|
42
|
-
# "user:jose@example.com"
|
|
43
|
-
# ]
|
|
44
|
-
# `,
|
|
45
|
-
# `
|
|
46
|
-
# "log_type": "DATA_WRITE"
|
|
47
|
-
# `,
|
|
48
|
-
# `
|
|
49
|
-
# "log_type": "ADMIN_READ"
|
|
50
|
-
# `
|
|
51
|
-
# ]
|
|
52
|
-
# `,
|
|
53
|
-
# `
|
|
54
|
-
# "service": "sampleservice.googleapis.com",
|
|
55
|
-
# "audit_log_configs": [
|
|
56
|
-
# `
|
|
57
|
-
# "log_type": "DATA_READ"
|
|
58
|
-
# `,
|
|
59
|
-
# `
|
|
60
|
-
# "log_type": "DATA_WRITE",
|
|
61
|
-
# "exempted_members": [
|
|
62
|
-
# "user:aliya@example.com"
|
|
63
|
-
# ]
|
|
64
|
-
# `
|
|
65
|
-
# ]
|
|
66
|
-
# `
|
|
67
|
-
# ]
|
|
68
|
-
# `
|
|
69
|
-
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
|
70
|
-
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
|
71
|
-
# aliya@example.com from DATA_WRITE logging.
|
|
25
|
+
# Specifies the audit configuration for a service. The configuration determines
|
|
26
|
+
# which permission types are logged, and what identities, if any, are exempted
|
|
27
|
+
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
|
28
|
+
# are AuditConfigs for both `allServices` and a specific service, the union of
|
|
29
|
+
# the two AuditConfigs is used for that service: the log_types specified in each
|
|
30
|
+
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
|
31
|
+
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
|
32
|
+
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
|
33
|
+
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
|
34
|
+
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
|
35
|
+
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
|
36
|
+
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
|
37
|
+
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
|
38
|
+
# exempts jose@example.com from DATA_READ logging, and aliya@example.com from
|
|
39
|
+
# DATA_WRITE logging.
|
|
72
40
|
class AuditConfig
|
|
73
41
|
include Google::Apis::Core::Hashable
|
|
74
42
|
|
|
@@ -77,9 +45,9 @@ module Google
|
|
|
77
45
|
# @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
|
|
78
46
|
attr_accessor :audit_log_configs
|
|
79
47
|
|
|
80
|
-
# Specifies a service that will be enabled for audit logging.
|
|
81
|
-
#
|
|
82
|
-
#
|
|
48
|
+
# Specifies a service that will be enabled for audit logging. For example, `
|
|
49
|
+
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
|
50
|
+
# value that covers all services.
|
|
83
51
|
# Corresponds to the JSON property `service`
|
|
84
52
|
# @return [String]
|
|
85
53
|
attr_accessor :service
|
|
@@ -95,28 +63,15 @@ module Google
|
|
|
95
63
|
end
|
|
96
64
|
end
|
|
97
65
|
|
|
98
|
-
# Provides the configuration for logging a type of permissions.
|
|
99
|
-
#
|
|
100
|
-
# `
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
# "log_type": "DATA_READ",
|
|
104
|
-
# "exempted_members": [
|
|
105
|
-
# "user:jose@example.com"
|
|
106
|
-
# ]
|
|
107
|
-
# `,
|
|
108
|
-
# `
|
|
109
|
-
# "log_type": "DATA_WRITE"
|
|
110
|
-
# `
|
|
111
|
-
# ]
|
|
112
|
-
# `
|
|
113
|
-
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
|
114
|
-
# jose@example.com from DATA_READ logging.
|
|
66
|
+
# Provides the configuration for logging a type of permissions. Example: ` "
|
|
67
|
+
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
|
68
|
+
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
|
69
|
+
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
|
70
|
+
# DATA_READ logging.
|
|
115
71
|
class AuditLogConfig
|
|
116
72
|
include Google::Apis::Core::Hashable
|
|
117
73
|
|
|
118
|
-
# Specifies the identities that do not cause logging for this type of
|
|
119
|
-
# permission.
|
|
74
|
+
# Specifies the identities that do not cause logging for this type of permission.
|
|
120
75
|
# Follows the same format of Binding.members.
|
|
121
76
|
# Corresponds to the JSON property `exemptedMembers`
|
|
122
77
|
# @return [Array<String>]
|
|
@@ -142,69 +97,57 @@ module Google
|
|
|
142
97
|
class Binding
|
|
143
98
|
include Google::Apis::Core::Hashable
|
|
144
99
|
|
|
145
|
-
# Represents a textual expression in the Common Expression Language (CEL)
|
|
146
|
-
#
|
|
147
|
-
#
|
|
148
|
-
#
|
|
149
|
-
#
|
|
150
|
-
# description: "Determines if
|
|
151
|
-
# expression: "document.
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
#
|
|
157
|
-
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
# Example (Data Manipulation):
|
|
161
|
-
# title: "Notification string"
|
|
162
|
-
# description: "Create a notification string with a timestamp."
|
|
163
|
-
# expression: "'New message received at ' + string(document.create_time)"
|
|
164
|
-
# The exact variables and functions that may be referenced within an expression
|
|
165
|
-
# are determined by the service that evaluates it. See the service
|
|
166
|
-
# documentation for additional information.
|
|
100
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
101
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
102
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
103
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
104
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
105
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
106
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
107
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
108
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
109
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
110
|
+
# string" description: "Create a notification string with a timestamp."
|
|
111
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
112
|
+
# exact variables and functions that may be referenced within an expression are
|
|
113
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
114
|
+
# additional information.
|
|
167
115
|
# Corresponds to the JSON property `condition`
|
|
168
116
|
# @return [Google::Apis::SourcerepoV1::Expr]
|
|
169
117
|
attr_accessor :condition
|
|
170
118
|
|
|
171
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
# * `
|
|
178
|
-
# account. For example, `
|
|
179
|
-
# * `
|
|
180
|
-
#
|
|
181
|
-
#
|
|
182
|
-
# For example, `
|
|
183
|
-
#
|
|
184
|
-
#
|
|
185
|
-
#
|
|
186
|
-
#
|
|
187
|
-
#
|
|
188
|
-
#
|
|
189
|
-
#
|
|
190
|
-
# deleted
|
|
191
|
-
#
|
|
192
|
-
# If the
|
|
193
|
-
# `
|
|
194
|
-
# role in the binding.
|
|
195
|
-
#
|
|
196
|
-
#
|
|
197
|
-
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
|
198
|
-
# the group is recovered, this value reverts to `group:`emailid`` and the
|
|
199
|
-
# recovered group retains the role in the binding.
|
|
200
|
-
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
201
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
|
119
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
|
120
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
|
121
|
+
# that represents anyone who is on the internet; with or without a Google
|
|
122
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
|
123
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
|
124
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
|
125
|
+
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
|
126
|
+
# address that represents a service account. For example, `my-other-app@appspot.
|
|
127
|
+
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
|
128
|
+
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
|
129
|
+
# `uniqueid``: An email address (plus unique identifier) representing a user
|
|
130
|
+
# that has been recently deleted. For example, `alice@example.com?uid=
|
|
131
|
+
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
|
132
|
+
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
|
133
|
+
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
134
|
+
# identifier) representing a service account that has been recently deleted. For
|
|
135
|
+
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
|
136
|
+
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
|
137
|
+
# emailid`` and the undeleted service account retains the role in the binding. *
|
|
138
|
+
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
139
|
+
# identifier) representing a Google group that has been recently deleted. For
|
|
140
|
+
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
|
141
|
+
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
|
142
|
+
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
|
143
|
+
# primary) that represents all the users of that domain. For example, `google.
|
|
144
|
+
# com` or `example.com`.
|
|
202
145
|
# Corresponds to the JSON property `members`
|
|
203
146
|
# @return [Array<String>]
|
|
204
147
|
attr_accessor :members
|
|
205
148
|
|
|
206
|
-
# Role that is assigned to `members`.
|
|
207
|
-
#
|
|
149
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
|
150
|
+
# , or `roles/owner`.
|
|
208
151
|
# Corresponds to the JSON property `role`
|
|
209
152
|
# @return [String]
|
|
210
153
|
attr_accessor :role
|
|
@@ -221,13 +164,11 @@ module Google
|
|
|
221
164
|
end
|
|
222
165
|
end
|
|
223
166
|
|
|
224
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
# `
|
|
230
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
167
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
168
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
169
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
170
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
|
171
|
+
# `Empty` is empty JSON object ````.
|
|
231
172
|
class Empty
|
|
232
173
|
include Google::Apis::Core::Hashable
|
|
233
174
|
|
|
@@ -240,52 +181,43 @@ module Google
|
|
|
240
181
|
end
|
|
241
182
|
end
|
|
242
183
|
|
|
243
|
-
# Represents a textual expression in the Common Expression Language (CEL)
|
|
244
|
-
#
|
|
245
|
-
#
|
|
246
|
-
#
|
|
247
|
-
#
|
|
248
|
-
# description: "Determines if
|
|
249
|
-
# expression: "document.
|
|
250
|
-
#
|
|
251
|
-
#
|
|
252
|
-
#
|
|
253
|
-
#
|
|
254
|
-
#
|
|
255
|
-
#
|
|
256
|
-
#
|
|
257
|
-
#
|
|
258
|
-
# Example (Data Manipulation):
|
|
259
|
-
# title: "Notification string"
|
|
260
|
-
# description: "Create a notification string with a timestamp."
|
|
261
|
-
# expression: "'New message received at ' + string(document.create_time)"
|
|
262
|
-
# The exact variables and functions that may be referenced within an expression
|
|
263
|
-
# are determined by the service that evaluates it. See the service
|
|
264
|
-
# documentation for additional information.
|
|
184
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
|
185
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
|
186
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
|
187
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
|
188
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
|
189
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
|
190
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
|
191
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
|
192
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
|
193
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
|
194
|
+
# string" description: "Create a notification string with a timestamp."
|
|
195
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
|
196
|
+
# exact variables and functions that may be referenced within an expression are
|
|
197
|
+
# determined by the service that evaluates it. See the service documentation for
|
|
198
|
+
# additional information.
|
|
265
199
|
class Expr
|
|
266
200
|
include Google::Apis::Core::Hashable
|
|
267
201
|
|
|
268
|
-
# Optional. Description of the expression. This is a longer text which
|
|
269
|
-
#
|
|
202
|
+
# Optional. Description of the expression. This is a longer text which describes
|
|
203
|
+
# the expression, e.g. when hovered over it in a UI.
|
|
270
204
|
# Corresponds to the JSON property `description`
|
|
271
205
|
# @return [String]
|
|
272
206
|
attr_accessor :description
|
|
273
207
|
|
|
274
|
-
# Textual representation of an expression in Common Expression Language
|
|
275
|
-
# syntax.
|
|
208
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
|
276
209
|
# Corresponds to the JSON property `expression`
|
|
277
210
|
# @return [String]
|
|
278
211
|
attr_accessor :expression
|
|
279
212
|
|
|
280
|
-
# Optional. String indicating the location of the expression for error
|
|
281
|
-
#
|
|
213
|
+
# Optional. String indicating the location of the expression for error reporting,
|
|
214
|
+
# e.g. a file name and a position in the file.
|
|
282
215
|
# Corresponds to the JSON property `location`
|
|
283
216
|
# @return [String]
|
|
284
217
|
attr_accessor :location
|
|
285
218
|
|
|
286
|
-
# Optional. Title for the expression, i.e. a short string describing
|
|
287
|
-
#
|
|
288
|
-
# expression.
|
|
219
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
|
220
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
|
289
221
|
# Corresponds to the JSON property `title`
|
|
290
222
|
# @return [String]
|
|
291
223
|
attr_accessor :title
|
|
@@ -303,13 +235,13 @@ module Google
|
|
|
303
235
|
end
|
|
304
236
|
end
|
|
305
237
|
|
|
306
|
-
# Response for ListRepos.
|
|
238
|
+
# Response for ListRepos. The size is not set in the returned repositories.
|
|
307
239
|
class ListReposResponse
|
|
308
240
|
include Google::Apis::Core::Hashable
|
|
309
241
|
|
|
310
|
-
# If non-empty, additional repositories exist within the project. These
|
|
311
|
-
#
|
|
312
|
-
#
|
|
242
|
+
# If non-empty, additional repositories exist within the project. These can be
|
|
243
|
+
# retrieved by including this value in the next ListReposRequest's page_token
|
|
244
|
+
# field.
|
|
313
245
|
# Corresponds to the JSON property `nextPageToken`
|
|
314
246
|
# @return [String]
|
|
315
247
|
attr_accessor :next_page_token
|
|
@@ -330,14 +262,14 @@ module Google
|
|
|
330
262
|
end
|
|
331
263
|
end
|
|
332
264
|
|
|
333
|
-
# Configuration to automatically mirror a repository from another
|
|
334
|
-
#
|
|
265
|
+
# Configuration to automatically mirror a repository from another hosting
|
|
266
|
+
# service, for example GitHub or Bitbucket.
|
|
335
267
|
class MirrorConfig
|
|
336
268
|
include Google::Apis::Core::Hashable
|
|
337
269
|
|
|
338
|
-
# ID of the SSH deploy key at the other hosting service.
|
|
339
|
-
#
|
|
340
|
-
#
|
|
270
|
+
# ID of the SSH deploy key at the other hosting service. Removing this key from
|
|
271
|
+
# the other service would deauthorize Google Cloud Source Repositories from
|
|
272
|
+
# mirroring.
|
|
341
273
|
# Corresponds to the JSON property `deployKeyId`
|
|
342
274
|
# @return [String]
|
|
343
275
|
attr_accessor :deploy_key_id
|
|
@@ -347,10 +279,9 @@ module Google
|
|
|
347
279
|
# @return [String]
|
|
348
280
|
attr_accessor :url
|
|
349
281
|
|
|
350
|
-
# ID of the webhook listening to updates to trigger mirroring.
|
|
351
|
-
#
|
|
352
|
-
#
|
|
353
|
-
# and thereby disabling mirroring.
|
|
282
|
+
# ID of the webhook listening to updates to trigger mirroring. Removing this
|
|
283
|
+
# webhook from the other hosting service will stop Google Cloud Source
|
|
284
|
+
# Repositories from receiving notifications, and thereby disabling mirroring.
|
|
354
285
|
# Corresponds to the JSON property `webhookId`
|
|
355
286
|
# @return [String]
|
|
356
287
|
attr_accessor :webhook_id
|
|
@@ -372,47 +303,45 @@ module Google
|
|
|
372
303
|
class Operation
|
|
373
304
|
include Google::Apis::Core::Hashable
|
|
374
305
|
|
|
375
|
-
# If the value is `false`, it means the operation is still in progress.
|
|
376
|
-
#
|
|
377
|
-
# available.
|
|
306
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
307
|
+
# , the operation is completed, and either `error` or `response` is available.
|
|
378
308
|
# Corresponds to the JSON property `done`
|
|
379
309
|
# @return [Boolean]
|
|
380
310
|
attr_accessor :done
|
|
381
311
|
alias_method :done?, :done
|
|
382
312
|
|
|
383
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
384
|
-
#
|
|
385
|
-
#
|
|
386
|
-
#
|
|
387
|
-
#
|
|
388
|
-
#
|
|
313
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
314
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
315
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
316
|
+
# data: error code, error message, and error details. You can find out more
|
|
317
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
318
|
+
# //cloud.google.com/apis/design/errors).
|
|
389
319
|
# Corresponds to the JSON property `error`
|
|
390
320
|
# @return [Google::Apis::SourcerepoV1::Status]
|
|
391
321
|
attr_accessor :error
|
|
392
322
|
|
|
393
|
-
# Service-specific metadata associated with the operation.
|
|
394
|
-
#
|
|
395
|
-
#
|
|
396
|
-
#
|
|
323
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
324
|
+
# progress information and common metadata such as create time. Some services
|
|
325
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
326
|
+
# operation should document the metadata type, if any.
|
|
397
327
|
# Corresponds to the JSON property `metadata`
|
|
398
328
|
# @return [Hash<String,Object>]
|
|
399
329
|
attr_accessor :metadata
|
|
400
330
|
|
|
401
331
|
# The server-assigned name, which is only unique within the same service that
|
|
402
|
-
# originally returns it. If you use the default HTTP mapping, the
|
|
403
|
-
#
|
|
332
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
333
|
+
# be a resource name ending with `operations/`unique_id``.
|
|
404
334
|
# Corresponds to the JSON property `name`
|
|
405
335
|
# @return [String]
|
|
406
336
|
attr_accessor :name
|
|
407
337
|
|
|
408
|
-
# The normal response of the operation in case of success.
|
|
409
|
-
# method returns no data on success, such as `Delete`, the response is
|
|
410
|
-
#
|
|
411
|
-
#
|
|
412
|
-
#
|
|
413
|
-
#
|
|
414
|
-
#
|
|
415
|
-
# `TakeSnapshotResponse`.
|
|
338
|
+
# The normal response of the operation in case of success. If the original
|
|
339
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
|
340
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
|
341
|
+
# the response should be the resource. For other methods, the response should
|
|
342
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
|
343
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
|
344
|
+
# response type is `TakeSnapshotResponse`.
|
|
416
345
|
# Corresponds to the JSON property `response`
|
|
417
346
|
# @return [Hash<String,Object>]
|
|
418
347
|
attr_accessor :response
|
|
@@ -432,66 +361,32 @@ module Google
|
|
|
432
361
|
end
|
|
433
362
|
|
|
434
363
|
# An Identity and Access Management (IAM) policy, which specifies access
|
|
435
|
-
# controls for Google Cloud resources.
|
|
436
|
-
# A `
|
|
437
|
-
#
|
|
438
|
-
#
|
|
439
|
-
#
|
|
440
|
-
#
|
|
441
|
-
#
|
|
442
|
-
#
|
|
443
|
-
#
|
|
444
|
-
#
|
|
445
|
-
#
|
|
446
|
-
# [
|
|
447
|
-
#
|
|
448
|
-
#
|
|
449
|
-
# `
|
|
450
|
-
# "
|
|
451
|
-
# `
|
|
452
|
-
# "
|
|
453
|
-
#
|
|
454
|
-
#
|
|
455
|
-
#
|
|
456
|
-
#
|
|
457
|
-
#
|
|
458
|
-
#
|
|
459
|
-
#
|
|
460
|
-
#
|
|
461
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
|
462
|
-
# "members": [
|
|
463
|
-
# "user:eve@example.com"
|
|
464
|
-
# ],
|
|
465
|
-
# "condition": `
|
|
466
|
-
# "title": "expirable access",
|
|
467
|
-
# "description": "Does not grant access after Sep 2020",
|
|
468
|
-
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
469
|
-
# ",
|
|
470
|
-
# `
|
|
471
|
-
# `
|
|
472
|
-
# ],
|
|
473
|
-
# "etag": "BwWWja0YfJA=",
|
|
474
|
-
# "version": 3
|
|
475
|
-
# `
|
|
476
|
-
# **YAML example:**
|
|
477
|
-
# bindings:
|
|
478
|
-
# - members:
|
|
479
|
-
# - user:mike@example.com
|
|
480
|
-
# - group:admins@example.com
|
|
481
|
-
# - domain:google.com
|
|
482
|
-
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
|
483
|
-
# role: roles/resourcemanager.organizationAdmin
|
|
484
|
-
# - members:
|
|
485
|
-
# - user:eve@example.com
|
|
486
|
-
# role: roles/resourcemanager.organizationViewer
|
|
487
|
-
# condition:
|
|
488
|
-
# title: expirable access
|
|
489
|
-
# description: Does not grant access after Sep 2020
|
|
490
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
491
|
-
# - etag: BwWWja0YfJA=
|
|
492
|
-
# - version: 3
|
|
493
|
-
# For a description of IAM and its features, see the
|
|
494
|
-
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
364
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
|
365
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
|
366
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
|
367
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
|
368
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
|
369
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
|
370
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
|
371
|
+
# condition can add constraints based on attributes of the request, the resource,
|
|
372
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
|
373
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
|
374
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
|
375
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
|
376
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
|
377
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
|
378
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
|
379
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
|
380
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
|
381
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
|
382
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
|
383
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
|
384
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
|
385
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
|
386
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
|
387
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
|
388
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
|
389
|
+
# google.com/iam/docs/).
|
|
495
390
|
class Policy
|
|
496
391
|
include Google::Apis::Core::Hashable
|
|
497
392
|
|
|
@@ -500,48 +395,44 @@ module Google
|
|
|
500
395
|
# @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
|
|
501
396
|
attr_accessor :audit_configs
|
|
502
397
|
|
|
503
|
-
# Associates a list of `members` to a `role`. Optionally, may specify a
|
|
504
|
-
#
|
|
505
|
-
#
|
|
398
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
|
399
|
+
# condition` that determines how and when the `bindings` are applied. Each of
|
|
400
|
+
# the `bindings` must contain at least one member.
|
|
506
401
|
# Corresponds to the JSON property `bindings`
|
|
507
402
|
# @return [Array<Google::Apis::SourcerepoV1::Binding>]
|
|
508
403
|
attr_accessor :bindings
|
|
509
404
|
|
|
510
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
#
|
|
517
|
-
#
|
|
518
|
-
#
|
|
519
|
-
#
|
|
520
|
-
#
|
|
405
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
|
406
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
|
407
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
|
408
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
|
409
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
|
410
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
|
411
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
|
412
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
|
413
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
|
414
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
|
415
|
+
# are lost.
|
|
521
416
|
# Corresponds to the JSON property `etag`
|
|
522
417
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
523
418
|
# @return [String]
|
|
524
419
|
attr_accessor :etag
|
|
525
420
|
|
|
526
|
-
# Specifies the format of the policy.
|
|
527
|
-
#
|
|
528
|
-
#
|
|
529
|
-
#
|
|
530
|
-
#
|
|
531
|
-
#
|
|
532
|
-
#
|
|
533
|
-
#
|
|
534
|
-
#
|
|
535
|
-
#
|
|
536
|
-
#
|
|
537
|
-
#
|
|
538
|
-
#
|
|
539
|
-
#
|
|
540
|
-
#
|
|
541
|
-
# specify any valid version or leave the field unset.
|
|
542
|
-
# To learn which resources support conditions in their IAM policies, see the
|
|
543
|
-
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
544
|
-
# policies).
|
|
421
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
|
422
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
|
423
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
|
424
|
+
# applies to the following operations: * Getting a policy that includes a
|
|
425
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
|
426
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
|
427
|
+
# with or without a condition, from a policy that includes conditions **
|
|
428
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
|
429
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
|
430
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
|
431
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
|
432
|
+
# any conditions, operations on that policy may specify any valid version or
|
|
433
|
+
# leave the field unset. To learn which resources support conditions in their
|
|
434
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
|
435
|
+
# conditions/resource-policies).
|
|
545
436
|
# Corresponds to the JSON property `version`
|
|
546
437
|
# @return [Fixnum]
|
|
547
438
|
attr_accessor :version
|
|
@@ -569,13 +460,13 @@ module Google
|
|
|
569
460
|
attr_accessor :enable_private_key_check
|
|
570
461
|
alias_method :enable_private_key_check?, :enable_private_key_check
|
|
571
462
|
|
|
572
|
-
# The name of the project. Values are of the form `projects
|
|
463
|
+
# The name of the project. Values are of the form `projects/`.
|
|
573
464
|
# Corresponds to the JSON property `name`
|
|
574
465
|
# @return [String]
|
|
575
466
|
attr_accessor :name
|
|
576
467
|
|
|
577
|
-
# How this project publishes a change in the repositories through Cloud
|
|
578
|
-
#
|
|
468
|
+
# How this project publishes a change in the repositories through Cloud Pub/Sub.
|
|
469
|
+
# Keyed by the topic names.
|
|
579
470
|
# Corresponds to the JSON property `pubsubConfigs`
|
|
580
471
|
# @return [Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>]
|
|
581
472
|
attr_accessor :pubsub_configs
|
|
@@ -603,16 +494,15 @@ module Google
|
|
|
603
494
|
|
|
604
495
|
# Email address of the service account used for publishing Cloud Pub/Sub
|
|
605
496
|
# messages. This service account needs to be in the same project as the
|
|
606
|
-
# PubsubConfig. When added, the caller needs to have
|
|
607
|
-
#
|
|
608
|
-
#
|
|
497
|
+
# PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs
|
|
498
|
+
# permission on this service account. If unspecified, it defaults to the compute
|
|
499
|
+
# engine default service account.
|
|
609
500
|
# Corresponds to the JSON property `serviceAccountEmail`
|
|
610
501
|
# @return [String]
|
|
611
502
|
attr_accessor :service_account_email
|
|
612
503
|
|
|
613
|
-
# A topic of Cloud Pub/Sub. Values are of the form
|
|
614
|
-
#
|
|
615
|
-
# project as this config is in.
|
|
504
|
+
# A topic of Cloud Pub/Sub. Values are of the form `projects//topics/`. The
|
|
505
|
+
# project needs to be the same project as this config is in.
|
|
616
506
|
# Corresponds to the JSON property `topic`
|
|
617
507
|
# @return [String]
|
|
618
508
|
attr_accessor :topic
|
|
@@ -633,33 +523,32 @@ module Google
|
|
|
633
523
|
class Repo
|
|
634
524
|
include Google::Apis::Core::Hashable
|
|
635
525
|
|
|
636
|
-
# Configuration to automatically mirror a repository from another
|
|
637
|
-
#
|
|
526
|
+
# Configuration to automatically mirror a repository from another hosting
|
|
527
|
+
# service, for example GitHub or Bitbucket.
|
|
638
528
|
# Corresponds to the JSON property `mirrorConfig`
|
|
639
529
|
# @return [Google::Apis::SourcerepoV1::MirrorConfig]
|
|
640
530
|
attr_accessor :mirror_config
|
|
641
531
|
|
|
642
|
-
# Resource name of the repository, of the form
|
|
643
|
-
#
|
|
644
|
-
# eg, `projects/myproject/repos/name/with/slash`
|
|
532
|
+
# Resource name of the repository, of the form `projects//repos/`. The repo name
|
|
533
|
+
# may contain slashes. eg, `projects/myproject/repos/name/with/slash`
|
|
645
534
|
# Corresponds to the JSON property `name`
|
|
646
535
|
# @return [String]
|
|
647
536
|
attr_accessor :name
|
|
648
537
|
|
|
649
|
-
# How this repository publishes a change in the repository through Cloud
|
|
650
|
-
#
|
|
538
|
+
# How this repository publishes a change in the repository through Cloud Pub/Sub.
|
|
539
|
+
# Keyed by the topic names.
|
|
651
540
|
# Corresponds to the JSON property `pubsubConfigs`
|
|
652
541
|
# @return [Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>]
|
|
653
542
|
attr_accessor :pubsub_configs
|
|
654
543
|
|
|
655
|
-
# The disk usage of the repo, in bytes. Read-only field. Size is only
|
|
656
|
-
#
|
|
544
|
+
# The disk usage of the repo, in bytes. Read-only field. Size is only returned
|
|
545
|
+
# by GetRepo.
|
|
657
546
|
# Corresponds to the JSON property `size`
|
|
658
547
|
# @return [Fixnum]
|
|
659
548
|
attr_accessor :size
|
|
660
549
|
|
|
661
|
-
# URL to clone the repository from Google Cloud Source Repositories.
|
|
662
|
-
#
|
|
550
|
+
# URL to clone the repository from Google Cloud Source Repositories. Read-only
|
|
551
|
+
# field.
|
|
663
552
|
# Corresponds to the JSON property `url`
|
|
664
553
|
# @return [String]
|
|
665
554
|
attr_accessor :url
|
|
@@ -683,74 +572,39 @@ module Google
|
|
|
683
572
|
include Google::Apis::Core::Hashable
|
|
684
573
|
|
|
685
574
|
# An Identity and Access Management (IAM) policy, which specifies access
|
|
686
|
-
# controls for Google Cloud resources.
|
|
687
|
-
# A `
|
|
688
|
-
#
|
|
689
|
-
#
|
|
690
|
-
#
|
|
691
|
-
#
|
|
692
|
-
#
|
|
693
|
-
#
|
|
694
|
-
#
|
|
695
|
-
#
|
|
696
|
-
#
|
|
697
|
-
# [
|
|
698
|
-
#
|
|
699
|
-
#
|
|
700
|
-
# `
|
|
701
|
-
# "
|
|
702
|
-
# `
|
|
703
|
-
# "
|
|
704
|
-
#
|
|
705
|
-
#
|
|
706
|
-
#
|
|
707
|
-
#
|
|
708
|
-
#
|
|
709
|
-
#
|
|
710
|
-
#
|
|
711
|
-
#
|
|
712
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
|
713
|
-
# "members": [
|
|
714
|
-
# "user:eve@example.com"
|
|
715
|
-
# ],
|
|
716
|
-
# "condition": `
|
|
717
|
-
# "title": "expirable access",
|
|
718
|
-
# "description": "Does not grant access after Sep 2020",
|
|
719
|
-
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
720
|
-
# ",
|
|
721
|
-
# `
|
|
722
|
-
# `
|
|
723
|
-
# ],
|
|
724
|
-
# "etag": "BwWWja0YfJA=",
|
|
725
|
-
# "version": 3
|
|
726
|
-
# `
|
|
727
|
-
# **YAML example:**
|
|
728
|
-
# bindings:
|
|
729
|
-
# - members:
|
|
730
|
-
# - user:mike@example.com
|
|
731
|
-
# - group:admins@example.com
|
|
732
|
-
# - domain:google.com
|
|
733
|
-
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
|
734
|
-
# role: roles/resourcemanager.organizationAdmin
|
|
735
|
-
# - members:
|
|
736
|
-
# - user:eve@example.com
|
|
737
|
-
# role: roles/resourcemanager.organizationViewer
|
|
738
|
-
# condition:
|
|
739
|
-
# title: expirable access
|
|
740
|
-
# description: Does not grant access after Sep 2020
|
|
741
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
742
|
-
# - etag: BwWWja0YfJA=
|
|
743
|
-
# - version: 3
|
|
744
|
-
# For a description of IAM and its features, see the
|
|
745
|
-
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
575
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
|
576
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
|
577
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
|
578
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
|
579
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
|
580
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
|
581
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
|
582
|
+
# condition can add constraints based on attributes of the request, the resource,
|
|
583
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
|
584
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
|
585
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
|
586
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
|
587
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
|
588
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
|
589
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
|
590
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
|
591
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
|
592
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
|
593
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
|
594
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
|
595
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
|
596
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
|
597
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
|
598
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
|
599
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
|
600
|
+
# google.com/iam/docs/).
|
|
746
601
|
# Corresponds to the JSON property `policy`
|
|
747
602
|
# @return [Google::Apis::SourcerepoV1::Policy]
|
|
748
603
|
attr_accessor :policy
|
|
749
604
|
|
|
750
605
|
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
751
|
-
# the fields in the mask will be modified. If no mask is provided, the
|
|
752
|
-
#
|
|
753
|
-
# `paths: "bindings, etag"`
|
|
606
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
|
607
|
+
# default mask is used: `paths: "bindings, etag"`
|
|
754
608
|
# Corresponds to the JSON property `updateMask`
|
|
755
609
|
# @return [String]
|
|
756
610
|
attr_accessor :update_mask
|
|
@@ -766,12 +620,12 @@ module Google
|
|
|
766
620
|
end
|
|
767
621
|
end
|
|
768
622
|
|
|
769
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
770
|
-
#
|
|
771
|
-
#
|
|
772
|
-
#
|
|
773
|
-
#
|
|
774
|
-
#
|
|
623
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
624
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
625
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
626
|
+
# data: error code, error message, and error details. You can find out more
|
|
627
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
628
|
+
# //cloud.google.com/apis/design/errors).
|
|
775
629
|
class Status
|
|
776
630
|
include Google::Apis::Core::Hashable
|
|
777
631
|
|
|
@@ -780,15 +634,15 @@ module Google
|
|
|
780
634
|
# @return [Fixnum]
|
|
781
635
|
attr_accessor :code
|
|
782
636
|
|
|
783
|
-
# A list of messages that carry the error details.
|
|
637
|
+
# A list of messages that carry the error details. There is a common set of
|
|
784
638
|
# message types for APIs to use.
|
|
785
639
|
# Corresponds to the JSON property `details`
|
|
786
640
|
# @return [Array<Hash<String,Object>>]
|
|
787
641
|
attr_accessor :details
|
|
788
642
|
|
|
789
|
-
# A developer-facing error message, which should be in English. Any
|
|
790
|
-
#
|
|
791
|
-
#
|
|
643
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
644
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
645
|
+
# field, or localized by the client.
|
|
792
646
|
# Corresponds to the JSON property `message`
|
|
793
647
|
# @return [String]
|
|
794
648
|
attr_accessor :message
|
|
@@ -805,13 +659,12 @@ module Google
|
|
|
805
659
|
end
|
|
806
660
|
end
|
|
807
661
|
|
|
808
|
-
# Metadata of SyncRepo.
|
|
809
|
-
# This message is in the metadata field of Operation.
|
|
662
|
+
# Metadata of SyncRepo. This message is in the metadata field of Operation.
|
|
810
663
|
class SyncRepoMetadata
|
|
811
664
|
include Google::Apis::Core::Hashable
|
|
812
665
|
|
|
813
|
-
# The name of the repo being synchronized. Values are of the form
|
|
814
|
-
#
|
|
666
|
+
# The name of the repo being synchronized. Values are of the form `projects//
|
|
667
|
+
# repos/`.
|
|
815
668
|
# Corresponds to the JSON property `name`
|
|
816
669
|
# @return [String]
|
|
817
670
|
attr_accessor :name
|
|
@@ -861,10 +714,9 @@ module Google
|
|
|
861
714
|
class TestIamPermissionsRequest
|
|
862
715
|
include Google::Apis::Core::Hashable
|
|
863
716
|
|
|
864
|
-
# The set of permissions to check for the `resource`. Permissions with
|
|
865
|
-
#
|
|
866
|
-
#
|
|
867
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
717
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
|
718
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
|
719
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
868
720
|
# Corresponds to the JSON property `permissions`
|
|
869
721
|
# @return [Array<String>]
|
|
870
722
|
attr_accessor :permissions
|
|
@@ -883,8 +735,7 @@ module Google
|
|
|
883
735
|
class TestIamPermissionsResponse
|
|
884
736
|
include Google::Apis::Core::Hashable
|
|
885
737
|
|
|
886
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
|
887
|
-
# allowed.
|
|
738
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
|
888
739
|
# Corresponds to the JSON property `permissions`
|
|
889
740
|
# @return [Array<String>]
|
|
890
741
|
attr_accessor :permissions
|
|
@@ -908,9 +759,9 @@ module Google
|
|
|
908
759
|
# @return [Google::Apis::SourcerepoV1::ProjectConfig]
|
|
909
760
|
attr_accessor :project_config
|
|
910
761
|
|
|
911
|
-
# A FieldMask specifying which fields of the project_config to modify. Only
|
|
912
|
-
#
|
|
913
|
-
#
|
|
762
|
+
# A FieldMask specifying which fields of the project_config to modify. Only the
|
|
763
|
+
# fields in the mask will be modified. If no mask is provided, this request is
|
|
764
|
+
# no-op.
|
|
914
765
|
# Corresponds to the JSON property `updateMask`
|
|
915
766
|
# @return [String]
|
|
916
767
|
attr_accessor :update_mask
|
|
@@ -935,9 +786,8 @@ module Google
|
|
|
935
786
|
# @return [Google::Apis::SourcerepoV1::Repo]
|
|
936
787
|
attr_accessor :repo
|
|
937
788
|
|
|
938
|
-
# A FieldMask specifying which fields of the repo to modify. Only the fields
|
|
939
|
-
#
|
|
940
|
-
# no-op.
|
|
789
|
+
# A FieldMask specifying which fields of the repo to modify. Only the fields in
|
|
790
|
+
# the mask will be modified. If no mask is provided, this request is no-op.
|
|
941
791
|
# Corresponds to the JSON property `updateMask`
|
|
942
792
|
# @return [String]
|
|
943
793
|
attr_accessor :update_mask
|