google-api-client 0.30.3 → 0.30.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +22 -7
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquery_v2/service.rb +4 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +345 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +66 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -22
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -14
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +239 -1
- data/generated/google/apis/cloudkms_v1/representations.rb +71 -0
- data/generated/google/apis/cloudkms_v1/service.rb +215 -7
- data/generated/google/apis/cloudsearch_v1.rb +2 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +15 -13
- data/generated/google/apis/compute_alpha/service.rb +3 -2
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +15 -13
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +15 -13
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +16 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +6 -7
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +3 -3
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +117 -24
- data/generated/google/apis/firebase_v1beta1/representations.rb +41 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +139 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +1 -0
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +28 -0
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +15 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +35 -5
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +28 -4
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +10 -10
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +34 -98
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +30 -12
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +6 -10
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +8 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +22 -2
- data/generated/google/apis/redis_v1beta1/representations.rb +13 -0
- data/generated/google/apis/redis_v1beta1/service.rb +36 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +32 -4
- data/generated/google/apis/run_v1alpha1/representations.rb +3 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +48 -75
- data/generated/google/apis/sourcerepo_v1/representations.rb +16 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/service.rb +0 -32
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/service.rb +0 -32
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +41 -6
- data/generated/google/apis/storage_v1/representations.rb +17 -0
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +3 -3
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +3 -3
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +8 -74
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +45 -35
- data/generated/google/apis/websecurityscanner_v1.rb +31 -0
- data/generated/google/apis/websecurityscanner_v1/classes.rb +26 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +26 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +59 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65916f6e9a152075f0216acdae790f7063f9e59e
|
4
|
+
data.tar.gz: 9baa25202eedb7ccf774282afabd383c548c999b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbf42e8ac5d60e8295d36251bc3a37668a6e0ff601aabf25a62f10b6d9a9cc0b91981c5958213b0c6f31af31640a682ac20201ed0235b975cfc7922a1750f797
|
7
|
+
data.tar.gz: 154f9c752033ea69d42943b50ed3e847a8b201ed099711c77e233b30316818bffc8d1a4d6892b66dedd2a9e4429ea9d800b76be179cad51ee3309abea489d2ff
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,46 @@
|
|
1
|
+
# 0.30.4
|
2
|
+
* Backwards compatible changes:
|
3
|
+
* Added `websecurityscanner_v1`
|
4
|
+
* Updated `bigquery_v2`
|
5
|
+
* Updated `calendar_v3`
|
6
|
+
* Updated `cloudasset_v1`
|
7
|
+
* Updated `cloudbuild_v1`
|
8
|
+
* Updated `cloudkms_v1`
|
9
|
+
* Updated `cloudsearch_v1`
|
10
|
+
* Updated `compute_alpha`
|
11
|
+
* Updated `compute_beta`
|
12
|
+
* Updated `compute_v1`
|
13
|
+
* Updated `containeranalysis_v1alpha1`
|
14
|
+
* Updated `dialogflow_v2`
|
15
|
+
* Updated `dialogflow_v2beta1`
|
16
|
+
* Updated `dns_v1`
|
17
|
+
* Updated `dns_v1beta2`
|
18
|
+
* Updated `dns_v2beta1`
|
19
|
+
* Updated `doubleclickbidmanager_v1`
|
20
|
+
* Updated `drive_v2`
|
21
|
+
* Updated `drive_v3`
|
22
|
+
* Updated `fcm_v1`
|
23
|
+
* Updated `firebase_v1beta1`
|
24
|
+
* Updated `genomics_v2alpha1`
|
25
|
+
* Updated `healthcare_v1alpha2`
|
26
|
+
* Updated `healthcare_v1beta1`
|
27
|
+
* Updated `jobs_v3`
|
28
|
+
* Updated `jobs_v3p1beta1`
|
29
|
+
* Updated `monitoring_v3`
|
30
|
+
* Updated `pubsub_v1`
|
31
|
+
* Updated `redis_v1`
|
32
|
+
* Updated `redis_v1beta1`
|
33
|
+
* Updated `run_v1alpha1`
|
34
|
+
* Updated `sourcerepo_v1`
|
35
|
+
* Updated `speech_v1`
|
36
|
+
* Updated `speech_v1p1beta1`
|
37
|
+
* Updated `storage_v1`
|
38
|
+
* Updated `storage_v1beta2`
|
39
|
+
* Updated `texttospeech_v1`
|
40
|
+
* Updated `texttospeech_v1beta1`
|
41
|
+
* Updated `vault_v1`
|
42
|
+
* Updated `videointelligence_v1beta2`
|
43
|
+
|
1
44
|
# 0.30.3
|
2
45
|
* Backwards compatible changes:
|
3
46
|
* Added `firebase_v1beta1`
|
@@ -604,7 +604,7 @@ module Google
|
|
604
604
|
attr_accessor :id
|
605
605
|
|
606
606
|
# Identifies this as a notification channel used to watch for changes to a
|
607
|
-
# resource
|
607
|
+
# resource, which is "api#channel".
|
608
608
|
# Corresponds to the JSON property `kind`
|
609
609
|
# @return [String]
|
610
610
|
attr_accessor :kind
|
@@ -340,7 +340,7 @@ module Google
|
|
340
340
|
attr_accessor :id
|
341
341
|
|
342
342
|
# Identifies this as a notification channel used to watch for changes to a
|
343
|
-
# resource
|
343
|
+
# resource, which is "api#channel".
|
344
344
|
# Corresponds to the JSON property `kind`
|
345
345
|
# @return [String]
|
346
346
|
attr_accessor :kind
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190623'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -820,6 +820,11 @@ module Google
|
|
820
820
|
# @return [Google::Apis::BigqueryV2::DatasetReference]
|
821
821
|
attr_accessor :dataset_reference
|
822
822
|
|
823
|
+
#
|
824
|
+
# Corresponds to the JSON property `defaultEncryptionConfiguration`
|
825
|
+
# @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
|
826
|
+
attr_accessor :default_encryption_configuration
|
827
|
+
|
823
828
|
# [Optional] The default partition expiration for all partitioned tables in the
|
824
829
|
# dataset, in milliseconds. Once this property is set, all newly-created
|
825
830
|
# partitioned tables in the dataset will have an expirationMs property in the
|
@@ -912,6 +917,7 @@ module Google
|
|
912
917
|
@access = args[:access] if args.key?(:access)
|
913
918
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
914
919
|
@dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference)
|
920
|
+
@default_encryption_configuration = args[:default_encryption_configuration] if args.key?(:default_encryption_configuration)
|
915
921
|
@default_partition_expiration_ms = args[:default_partition_expiration_ms] if args.key?(:default_partition_expiration_ms)
|
916
922
|
@default_table_expiration_ms = args[:default_table_expiration_ms] if args.key?(:default_table_expiration_ms)
|
917
923
|
@description = args[:description] if args.key?(:description)
|
@@ -2822,6 +2828,13 @@ module Google
|
|
2822
2828
|
# @return [Array<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>]
|
2823
2829
|
attr_accessor :reservation_usage
|
2824
2830
|
|
2831
|
+
# [Output-only] Name of the primary reservation assigned to this job. Note that
|
2832
|
+
# this could be different than reservations reported in the reservation usage
|
2833
|
+
# field if parent reservations were used to execute this job.
|
2834
|
+
# Corresponds to the JSON property `reservation_id`
|
2835
|
+
# @return [String]
|
2836
|
+
attr_accessor :reservation_id
|
2837
|
+
|
2825
2838
|
# [Output-only] Start time of this job, in milliseconds since the epoch. This
|
2826
2839
|
# field will be present when the job transitions from the PENDING state to
|
2827
2840
|
# either RUNNING or DONE.
|
@@ -2856,6 +2869,7 @@ module Google
|
|
2856
2869
|
@query = args[:query] if args.key?(:query)
|
2857
2870
|
@quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
|
2858
2871
|
@reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
|
2872
|
+
@reservation_id = args[:reservation_id] if args.key?(:reservation_id)
|
2859
2873
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2860
2874
|
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
2861
2875
|
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
|
@@ -4137,15 +4151,16 @@ module Google
|
|
4137
4151
|
# For functions, this is the expression in the AS clause.
|
4138
4152
|
# If language=SQL, it is the substring inside (but excluding) the
|
4139
4153
|
# parentheses. For example, for the function created with the following
|
4140
|
-
# statement
|
4141
|
-
#
|
4142
|
-
# definition_body
|
4154
|
+
# statement:
|
4155
|
+
# `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))`
|
4156
|
+
# The definition_body is `concat(x, "\n", y)` (\n is not replaced with
|
4143
4157
|
# linebreak).
|
4144
4158
|
# If language=JAVASCRIPT, it is the evaluated string in the AS clause.
|
4145
|
-
# For example, for the function created with the following statement
|
4146
|
-
# CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'
|
4147
|
-
# definition_body
|
4148
|
-
#
|
4159
|
+
# For example, for the function created with the following statement:
|
4160
|
+
# `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'`
|
4161
|
+
# The definition_body is
|
4162
|
+
# `return "\n";\n`
|
4163
|
+
# Note that both \n are replaced with linebreaks.
|
4149
4164
|
# Corresponds to the JSON property `definitionBody`
|
4150
4165
|
# @return [String]
|
4151
4166
|
attr_accessor :definition_body
|
@@ -807,6 +807,8 @@ module Google
|
|
807
807
|
property :creation_time, :numeric_string => true, as: 'creationTime'
|
808
808
|
property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
809
809
|
|
810
|
+
property :default_encryption_configuration, as: 'defaultEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
|
811
|
+
|
810
812
|
property :default_partition_expiration_ms, :numeric_string => true, as: 'defaultPartitionExpirationMs'
|
811
813
|
property :default_table_expiration_ms, :numeric_string => true, as: 'defaultTableExpirationMs'
|
812
814
|
property :description, as: 'description'
|
@@ -1253,6 +1255,7 @@ module Google
|
|
1253
1255
|
collection :quota_deferments, as: 'quotaDeferments'
|
1254
1256
|
collection :reservation_usage, as: 'reservationUsage', class: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage, decorator: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage::Representation
|
1255
1257
|
|
1258
|
+
property :reservation_id, as: 'reservation_id'
|
1256
1259
|
property :start_time, :numeric_string => true, as: 'startTime'
|
1257
1260
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
1258
1261
|
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
@@ -660,7 +660,8 @@ module Google
|
|
660
660
|
# @param [String] dataset_id
|
661
661
|
# Dataset ID of the models to list.
|
662
662
|
# @param [Fixnum] max_results
|
663
|
-
# The maximum number of results
|
663
|
+
# The maximum number of results to return in a single response page.
|
664
|
+
# Leverage the page tokens to iterate through the entire collection.
|
664
665
|
# @param [String] page_token
|
665
666
|
# Page token, returned by a previous call to request the next page of
|
666
667
|
# results
|
@@ -935,7 +936,8 @@ module Google
|
|
935
936
|
# @param [String] dataset_id
|
936
937
|
# Dataset ID of the routines to list
|
937
938
|
# @param [Fixnum] max_results
|
938
|
-
# The maximum number of results
|
939
|
+
# The maximum number of results to return in a single response page.
|
940
|
+
# Leverage the page tokens to iterate through the entire collection.
|
939
941
|
# @param [String] page_token
|
940
942
|
# Page token, returned by a previous call, to request the next page of
|
941
943
|
# results
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
26
26
|
module CalendarV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190609'
|
29
29
|
|
30
30
|
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
31
31
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
@@ -496,7 +496,7 @@ module Google
|
|
496
496
|
attr_accessor :id
|
497
497
|
|
498
498
|
# Identifies this as a notification channel used to watch for changes to a
|
499
|
-
# resource
|
499
|
+
# resource, which is "api#channel".
|
500
500
|
# Corresponds to the JSON property `kind`
|
501
501
|
# @return [String]
|
502
502
|
attr_accessor :kind
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
26
26
|
module CloudassetV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190625'
|
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'
|
@@ -83,6 +83,13 @@ module Google
|
|
83
83
|
# @return [String]
|
84
84
|
attr_accessor :name
|
85
85
|
|
86
|
+
# Representation of the Cloud Organization Policy set on an asset. For each
|
87
|
+
# asset, there could be multiple Organization policies with different
|
88
|
+
# constraints.
|
89
|
+
# Corresponds to the JSON property `orgPolicy`
|
90
|
+
# @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>]
|
91
|
+
attr_accessor :org_policy
|
92
|
+
|
86
93
|
# Representation of a cloud resource.
|
87
94
|
# Corresponds to the JSON property `resource`
|
88
95
|
# @return [Google::Apis::CloudassetV1::Resource]
|
@@ -97,6 +104,7 @@ module Google
|
|
97
104
|
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
98
105
|
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
|
99
106
|
@name = args[:name] if args.key?(:name)
|
107
|
+
@org_policy = args[:org_policy] if args.key?(:org_policy)
|
100
108
|
@resource = args[:resource] if args.key?(:resource)
|
101
109
|
end
|
102
110
|
end
|
@@ -415,6 +423,343 @@ module Google
|
|
415
423
|
end
|
416
424
|
end
|
417
425
|
|
426
|
+
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
427
|
+
# resource.
|
428
|
+
class GoogleCloudOrgpolicyV1BooleanPolicy
|
429
|
+
include Google::Apis::Core::Hashable
|
430
|
+
|
431
|
+
# If `true`, then the `Policy` is enforced. If `false`, then any
|
432
|
+
# configuration is acceptable.
|
433
|
+
# Suppose you have a `Constraint`
|
434
|
+
# `constraints/compute.disableSerialPortAccess` with `constraint_default`
|
435
|
+
# set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following
|
436
|
+
# behavior:
|
437
|
+
# - If the `Policy` at this resource has enforced set to `false`, serial
|
438
|
+
# port connection attempts will be allowed.
|
439
|
+
# - If the `Policy` at this resource has enforced set to `true`, serial
|
440
|
+
# port connection attempts will be refused.
|
441
|
+
# - If the `Policy` at this resource is `RestoreDefault`, serial port
|
442
|
+
# connection attempts will be allowed.
|
443
|
+
# - If no `Policy` is set at this resource or anywhere higher in the
|
444
|
+
# resource hierarchy, serial port connection attempts will be allowed.
|
445
|
+
# - If no `Policy` is set at this resource, but one exists higher in the
|
446
|
+
# resource hierarchy, the behavior is as if the`Policy` were set at
|
447
|
+
# this resource.
|
448
|
+
# The following examples demonstrate the different possible layerings:
|
449
|
+
# Example 1 (nearest `Constraint` wins):
|
450
|
+
# `organizations/foo` has a `Policy` with:
|
451
|
+
# `enforced: false`
|
452
|
+
# `projects/bar` has no `Policy` set.
|
453
|
+
# The constraint at `projects/bar` and `organizations/foo` will not be
|
454
|
+
# enforced.
|
455
|
+
# Example 2 (enforcement gets replaced):
|
456
|
+
# `organizations/foo` has a `Policy` with:
|
457
|
+
# `enforced: false`
|
458
|
+
# `projects/bar` has a `Policy` with:
|
459
|
+
# `enforced: true`
|
460
|
+
# The constraint at `organizations/foo` is not enforced.
|
461
|
+
# The constraint at `projects/bar` is enforced.
|
462
|
+
# Example 3 (RestoreDefault):
|
463
|
+
# `organizations/foo` has a `Policy` with:
|
464
|
+
# `enforced: true`
|
465
|
+
# `projects/bar` has a `Policy` with:
|
466
|
+
# `RestoreDefault: ```
|
467
|
+
# The constraint at `organizations/foo` is enforced.
|
468
|
+
# The constraint at `projects/bar` is not enforced, because
|
469
|
+
# `constraint_default` for the `Constraint` is `ALLOW`.
|
470
|
+
# Corresponds to the JSON property `enforced`
|
471
|
+
# @return [Boolean]
|
472
|
+
attr_accessor :enforced
|
473
|
+
alias_method :enforced?, :enforced
|
474
|
+
|
475
|
+
def initialize(**args)
|
476
|
+
update!(**args)
|
477
|
+
end
|
478
|
+
|
479
|
+
# Update properties of this object
|
480
|
+
def update!(**args)
|
481
|
+
@enforced = args[:enforced] if args.key?(:enforced)
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
485
|
+
# Used in `policy_type` to specify how `list_policy` behaves at this
|
486
|
+
# resource.
|
487
|
+
# `ListPolicy` can define specific values and subtrees of Cloud Resource
|
488
|
+
# Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
|
489
|
+
# are allowed or denied by setting the `allowed_values` and `denied_values`
|
490
|
+
# fields. This is achieved by using the `under:` and optional `is:` prefixes.
|
491
|
+
# The `under:` prefix is used to denote resource subtree values.
|
492
|
+
# The `is:` prefix is used to denote specific values, and is required only
|
493
|
+
# if the value contains a ":". Values prefixed with "is:" are treated the
|
494
|
+
# same as values with no prefix.
|
495
|
+
# Ancestry subtrees must be in one of the following formats:
|
496
|
+
# - “projects/<project-id>”, e.g. “projects/tokyo-rain-123”
|
497
|
+
# - “folders/<folder-id>”, e.g. “folders/1234”
|
498
|
+
# - “organizations/<organization-id>”, e.g. “organizations/1234”
|
499
|
+
# The `supports_under` field of the associated `Constraint` defines whether
|
500
|
+
# ancestry prefixes can be used. You can set `allowed_values` and
|
501
|
+
# `denied_values` in the same `Policy` if `all_values` is
|
502
|
+
# `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
|
503
|
+
# values. If `all_values` is set to either `ALLOW` or `DENY`,
|
504
|
+
# `allowed_values` and `denied_values` must be unset.
|
505
|
+
class GoogleCloudOrgpolicyV1ListPolicy
|
506
|
+
include Google::Apis::Core::Hashable
|
507
|
+
|
508
|
+
# The policy all_values state.
|
509
|
+
# Corresponds to the JSON property `allValues`
|
510
|
+
# @return [String]
|
511
|
+
attr_accessor :all_values
|
512
|
+
|
513
|
+
# List of values allowed at this resource. Can only be set if `all_values`
|
514
|
+
# is set to `ALL_VALUES_UNSPECIFIED`.
|
515
|
+
# Corresponds to the JSON property `allowedValues`
|
516
|
+
# @return [Array<String>]
|
517
|
+
attr_accessor :allowed_values
|
518
|
+
|
519
|
+
# List of values denied at this resource. Can only be set if `all_values`
|
520
|
+
# is set to `ALL_VALUES_UNSPECIFIED`.
|
521
|
+
# Corresponds to the JSON property `deniedValues`
|
522
|
+
# @return [Array<String>]
|
523
|
+
attr_accessor :denied_values
|
524
|
+
|
525
|
+
# Determines the inheritance behavior for this `Policy`.
|
526
|
+
# By default, a `ListPolicy` set at a resource supercedes any `Policy` set
|
527
|
+
# anywhere up the resource hierarchy. However, if `inherit_from_parent` is
|
528
|
+
# set to `true`, then the values from the effective `Policy` of the parent
|
529
|
+
# resource are inherited, meaning the values set in this `Policy` are
|
530
|
+
# added to the values inherited up the hierarchy.
|
531
|
+
# Setting `Policy` hierarchies that inherit both allowed values and denied
|
532
|
+
# values isn't recommended in most circumstances to keep the configuration
|
533
|
+
# simple and understandable. However, it is possible to set a `Policy` with
|
534
|
+
# `allowed_values` set that inherits a `Policy` with `denied_values` set.
|
535
|
+
# In this case, the values that are allowed must be in `allowed_values` and
|
536
|
+
# not present in `denied_values`.
|
537
|
+
# For example, suppose you have a `Constraint`
|
538
|
+
# `constraints/serviceuser.services`, which has a `constraint_type` of
|
539
|
+
# `list_constraint`, and with `constraint_default` set to `ALLOW`.
|
540
|
+
# Suppose that at the Organization level, a `Policy` is applied that
|
541
|
+
# restricts the allowed API activations to ``E1`, `E2``. Then, if a
|
542
|
+
# `Policy` is applied to a project below the Organization that has
|
543
|
+
# `inherit_from_parent` set to `false` and field all_values set to DENY,
|
544
|
+
# then an attempt to activate any API will be denied.
|
545
|
+
# The following examples demonstrate different possible layerings for
|
546
|
+
# `projects/bar` parented by `organizations/foo`:
|
547
|
+
# Example 1 (no inherited values):
|
548
|
+
# `organizations/foo` has a `Policy` with values:
|
549
|
+
# `allowed_values: “E1” allowed_values:”E2”`
|
550
|
+
# `projects/bar` has `inherit_from_parent` `false` and values:
|
551
|
+
# `allowed_values: "E3" allowed_values: "E4"`
|
552
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
553
|
+
# The accepted values at `projects/bar` are `E3`, and `E4`.
|
554
|
+
# Example 2 (inherited values):
|
555
|
+
# `organizations/foo` has a `Policy` with values:
|
556
|
+
# `allowed_values: “E1” allowed_values:”E2”`
|
557
|
+
# `projects/bar` has a `Policy` with values:
|
558
|
+
# `value: “E3” value: ”E4” inherit_from_parent: true`
|
559
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
560
|
+
# The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.
|
561
|
+
# Example 3 (inheriting both allowed and denied values):
|
562
|
+
# `organizations/foo` has a `Policy` with values:
|
563
|
+
# `allowed_values: "E1" allowed_values: "E2"`
|
564
|
+
# `projects/bar` has a `Policy` with:
|
565
|
+
# `denied_values: "E1"`
|
566
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
567
|
+
# The value accepted at `projects/bar` is `E2`.
|
568
|
+
# Example 4 (RestoreDefault):
|
569
|
+
# `organizations/foo` has a `Policy` with values:
|
570
|
+
# `allowed_values: “E1” allowed_values:”E2”`
|
571
|
+
# `projects/bar` has a `Policy` with values:
|
572
|
+
# `RestoreDefault: ```
|
573
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
574
|
+
# The accepted values at `projects/bar` are either all or none depending on
|
575
|
+
# the value of `constraint_default` (if `ALLOW`, all; if
|
576
|
+
# `DENY`, none).
|
577
|
+
# Example 5 (no policy inherits parent policy):
|
578
|
+
# `organizations/foo` has no `Policy` set.
|
579
|
+
# `projects/bar` has no `Policy` set.
|
580
|
+
# The accepted values at both levels are either all or none depending on
|
581
|
+
# the value of `constraint_default` (if `ALLOW`, all; if
|
582
|
+
# `DENY`, none).
|
583
|
+
# Example 6 (ListConstraint allowing all):
|
584
|
+
# `organizations/foo` has a `Policy` with values:
|
585
|
+
# `allowed_values: “E1” allowed_values: ”E2”`
|
586
|
+
# `projects/bar` has a `Policy` with:
|
587
|
+
# `all: ALLOW`
|
588
|
+
# The accepted values at `organizations/foo` are `E1`, E2`.
|
589
|
+
# Any value is accepted at `projects/bar`.
|
590
|
+
# Example 7 (ListConstraint allowing none):
|
591
|
+
# `organizations/foo` has a `Policy` with values:
|
592
|
+
# `allowed_values: “E1” allowed_values: ”E2”`
|
593
|
+
# `projects/bar` has a `Policy` with:
|
594
|
+
# `all: DENY`
|
595
|
+
# The accepted values at `organizations/foo` are `E1`, E2`.
|
596
|
+
# No value is accepted at `projects/bar`.
|
597
|
+
# Example 10 (allowed and denied subtrees of Resource Manager hierarchy):
|
598
|
+
# Given the following resource hierarchy
|
599
|
+
# O1->`F1, F2`; F1->`P1`; F2->`P2, P3`,
|
600
|
+
# `organizations/foo` has a `Policy` with values:
|
601
|
+
# `allowed_values: "under:organizations/O1"`
|
602
|
+
# `projects/bar` has a `Policy` with:
|
603
|
+
# `allowed_values: "under:projects/P3"`
|
604
|
+
# `denied_values: "under:folders/F2"`
|
605
|
+
# The accepted values at `organizations/foo` are `organizations/O1`,
|
606
|
+
# `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`,
|
607
|
+
# `projects/P3`.
|
608
|
+
# The accepted values at `projects/bar` are `organizations/O1`,
|
609
|
+
# `folders/F1`, `projects/P1`.
|
610
|
+
# Corresponds to the JSON property `inheritFromParent`
|
611
|
+
# @return [Boolean]
|
612
|
+
attr_accessor :inherit_from_parent
|
613
|
+
alias_method :inherit_from_parent?, :inherit_from_parent
|
614
|
+
|
615
|
+
# Optional. The Google Cloud Console will try to default to a configuration
|
616
|
+
# that matches the value specified in this `Policy`. If `suggested_value`
|
617
|
+
# is not set, it will inherit the value specified higher in the hierarchy,
|
618
|
+
# unless `inherit_from_parent` is `false`.
|
619
|
+
# Corresponds to the JSON property `suggestedValue`
|
620
|
+
# @return [String]
|
621
|
+
attr_accessor :suggested_value
|
622
|
+
|
623
|
+
def initialize(**args)
|
624
|
+
update!(**args)
|
625
|
+
end
|
626
|
+
|
627
|
+
# Update properties of this object
|
628
|
+
def update!(**args)
|
629
|
+
@all_values = args[:all_values] if args.key?(:all_values)
|
630
|
+
@allowed_values = args[:allowed_values] if args.key?(:allowed_values)
|
631
|
+
@denied_values = args[:denied_values] if args.key?(:denied_values)
|
632
|
+
@inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
|
633
|
+
@suggested_value = args[:suggested_value] if args.key?(:suggested_value)
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
638
|
+
# for configurations of Cloud Platform resources.
|
639
|
+
class GoogleCloudOrgpolicyV1Policy
|
640
|
+
include Google::Apis::Core::Hashable
|
641
|
+
|
642
|
+
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
643
|
+
# resource.
|
644
|
+
# Corresponds to the JSON property `booleanPolicy`
|
645
|
+
# @return [Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1BooleanPolicy]
|
646
|
+
attr_accessor :boolean_policy
|
647
|
+
|
648
|
+
# The name of the `Constraint` the `Policy` is configuring, for example,
|
649
|
+
# `constraints/serviceuser.services`.
|
650
|
+
# Immutable after creation.
|
651
|
+
# Corresponds to the JSON property `constraint`
|
652
|
+
# @return [String]
|
653
|
+
attr_accessor :constraint
|
654
|
+
|
655
|
+
# An opaque tag indicating the current version of the `Policy`, used for
|
656
|
+
# concurrency control.
|
657
|
+
# When the `Policy` is returned from either a `GetPolicy` or a
|
658
|
+
# `ListOrgPolicy` request, this `etag` indicates the version of the current
|
659
|
+
# `Policy` to use when executing a read-modify-write loop.
|
660
|
+
# When the `Policy` is returned from a `GetEffectivePolicy` request, the
|
661
|
+
# `etag` will be unset.
|
662
|
+
# When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
|
663
|
+
# that was returned from a `GetOrgPolicy` request as part of a
|
664
|
+
# read-modify-write loop for concurrency control. Not setting the `etag`in a
|
665
|
+
# `SetOrgPolicy` request will result in an unconditional write of the
|
666
|
+
# `Policy`.
|
667
|
+
# Corresponds to the JSON property `etag`
|
668
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
669
|
+
# @return [String]
|
670
|
+
attr_accessor :etag
|
671
|
+
|
672
|
+
# Used in `policy_type` to specify how `list_policy` behaves at this
|
673
|
+
# resource.
|
674
|
+
# `ListPolicy` can define specific values and subtrees of Cloud Resource
|
675
|
+
# Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
|
676
|
+
# are allowed or denied by setting the `allowed_values` and `denied_values`
|
677
|
+
# fields. This is achieved by using the `under:` and optional `is:` prefixes.
|
678
|
+
# The `under:` prefix is used to denote resource subtree values.
|
679
|
+
# The `is:` prefix is used to denote specific values, and is required only
|
680
|
+
# if the value contains a ":". Values prefixed with "is:" are treated the
|
681
|
+
# same as values with no prefix.
|
682
|
+
# Ancestry subtrees must be in one of the following formats:
|
683
|
+
# - “projects/<project-id>”, e.g. “projects/tokyo-rain-123”
|
684
|
+
# - “folders/<folder-id>”, e.g. “folders/1234”
|
685
|
+
# - “organizations/<organization-id>”, e.g. “organizations/1234”
|
686
|
+
# The `supports_under` field of the associated `Constraint` defines whether
|
687
|
+
# ancestry prefixes can be used. You can set `allowed_values` and
|
688
|
+
# `denied_values` in the same `Policy` if `all_values` is
|
689
|
+
# `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
|
690
|
+
# values. If `all_values` is set to either `ALLOW` or `DENY`,
|
691
|
+
# `allowed_values` and `denied_values` must be unset.
|
692
|
+
# Corresponds to the JSON property `listPolicy`
|
693
|
+
# @return [Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1ListPolicy]
|
694
|
+
attr_accessor :list_policy
|
695
|
+
|
696
|
+
# Ignores policies set above this resource and restores the
|
697
|
+
# `constraint_default` enforcement behavior of the specific `Constraint` at
|
698
|
+
# this resource.
|
699
|
+
# Suppose that `constraint_default` is set to `ALLOW` for the
|
700
|
+
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
|
701
|
+
# foo.com sets a `Policy` at their Organization resource node that restricts
|
702
|
+
# the allowed service activations to deny all service activations. They
|
703
|
+
# could then set a `Policy` with the `policy_type` `restore_default` on
|
704
|
+
# several experimental projects, restoring the `constraint_default`
|
705
|
+
# enforcement of the `Constraint` for only those projects, allowing those
|
706
|
+
# projects to have all services activated.
|
707
|
+
# Corresponds to the JSON property `restoreDefault`
|
708
|
+
# @return [Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1RestoreDefault]
|
709
|
+
attr_accessor :restore_default
|
710
|
+
|
711
|
+
# The time stamp the `Policy` was previously updated. This is set by the
|
712
|
+
# server, not specified by the caller, and represents the last time a call to
|
713
|
+
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
|
714
|
+
# be ignored.
|
715
|
+
# Corresponds to the JSON property `updateTime`
|
716
|
+
# @return [String]
|
717
|
+
attr_accessor :update_time
|
718
|
+
|
719
|
+
# Version of the `Policy`. Default version is 0;
|
720
|
+
# Corresponds to the JSON property `version`
|
721
|
+
# @return [Fixnum]
|
722
|
+
attr_accessor :version
|
723
|
+
|
724
|
+
def initialize(**args)
|
725
|
+
update!(**args)
|
726
|
+
end
|
727
|
+
|
728
|
+
# Update properties of this object
|
729
|
+
def update!(**args)
|
730
|
+
@boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
|
731
|
+
@constraint = args[:constraint] if args.key?(:constraint)
|
732
|
+
@etag = args[:etag] if args.key?(:etag)
|
733
|
+
@list_policy = args[:list_policy] if args.key?(:list_policy)
|
734
|
+
@restore_default = args[:restore_default] if args.key?(:restore_default)
|
735
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
736
|
+
@version = args[:version] if args.key?(:version)
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
# Ignores policies set above this resource and restores the
|
741
|
+
# `constraint_default` enforcement behavior of the specific `Constraint` at
|
742
|
+
# this resource.
|
743
|
+
# Suppose that `constraint_default` is set to `ALLOW` for the
|
744
|
+
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
|
745
|
+
# foo.com sets a `Policy` at their Organization resource node that restricts
|
746
|
+
# the allowed service activations to deny all service activations. They
|
747
|
+
# could then set a `Policy` with the `policy_type` `restore_default` on
|
748
|
+
# several experimental projects, restoring the `constraint_default`
|
749
|
+
# enforcement of the `Constraint` for only those projects, allowing those
|
750
|
+
# projects to have all services activated.
|
751
|
+
class GoogleCloudOrgpolicyV1RestoreDefault
|
752
|
+
include Google::Apis::Core::Hashable
|
753
|
+
|
754
|
+
def initialize(**args)
|
755
|
+
update!(**args)
|
756
|
+
end
|
757
|
+
|
758
|
+
# Update properties of this object
|
759
|
+
def update!(**args)
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
418
763
|
# This resource represents a long-running operation that is the result of a
|
419
764
|
# network API call.
|
420
765
|
class Operation
|