google-apis-cloudidentity_v1 0.46.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 615ffd7c9d086aee80422759e9f8a376646f71d7f402d5be60fb49c11f9d6bbc
4
- data.tar.gz: 84510710845a8e50b6e0d3cae0111a9eb55f74364a586e0b07793f60e0328264
3
+ metadata.gz: 40478183de25da187ef4870a5cf0702ee3a846c06dd6da174fbe416c9db749f5
4
+ data.tar.gz: badc411417773f1221ad46b49282f7130ad59cf00e5dd6ee5ea2a7a03715d96a
5
5
  SHA512:
6
- metadata.gz: a04fde2c20a0f0b6d9dcf5bb6693c3192a6fd0f37dde66326a70cfbd184507d3254689270842a39d426523387e8c10e749c4797ed2da1e27d3afbf35ceb551e5
7
- data.tar.gz: 96772646adb8eeacfd00c4edc489c49cfbe59c7c7c33f19d2fb55ad3513925cc44b606f36f1fe3960f829d915bb12bc81e3bf07d4a7228b9bc2afd411d3f1520
6
+ metadata.gz: df27a3638c3edeabab9653808f6353ed5bf3bcf468d45e6d632e11a1bec1ab746e1cb119b5d9b2d700faefae982cac4b3741421d499b6a4e2108500fba976188
7
+ data.tar.gz: 1ed86e3aefcda89b2af50b13cc96ee82498163ab13fa6c038427f0b99441041a9cbbcb68ecdfd30e4cc58205e92f14ec19212ecad9af792bc40874fcaf7a05c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudidentity_v1
2
2
 
3
+ ### v0.47.0 (2024-12-15)
4
+
5
+ * Regenerated from discovery document revision 20241208
6
+
3
7
  ### v0.46.0 (2024-12-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20241126
@@ -2233,6 +2233,32 @@ module Google
2233
2233
  end
2234
2234
  end
2235
2235
 
2236
+ # The response message for PoliciesService.ListPolicies.
2237
+ class ListPoliciesResponse
2238
+ include Google::Apis::Core::Hashable
2239
+
2240
+ # The pagination token to retrieve the next page of results. If this field is
2241
+ # empty, there are no subsequent pages.
2242
+ # Corresponds to the JSON property `nextPageToken`
2243
+ # @return [String]
2244
+ attr_accessor :next_page_token
2245
+
2246
+ # The results
2247
+ # Corresponds to the JSON property `policies`
2248
+ # @return [Array<Google::Apis::CloudidentityV1::Policy>]
2249
+ attr_accessor :policies
2250
+
2251
+ def initialize(**args)
2252
+ update!(**args)
2253
+ end
2254
+
2255
+ # Update properties of this object
2256
+ def update!(**args)
2257
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2258
+ @policies = args[:policies] if args.key?(:policies)
2259
+ end
2260
+ end
2261
+
2236
2262
  # Response message for UserInvitation listing request.
2237
2263
  class ListUserInvitationsResponse
2238
2264
  include Google::Apis::Core::Hashable
@@ -2700,6 +2726,108 @@ module Google
2700
2726
  end
2701
2727
  end
2702
2728
 
2729
+ # A Policy resource binds an instance of a single Setting with the scope of a
2730
+ # PolicyQuery. The Setting instance will be applied to all entities that satisfy
2731
+ # the query.
2732
+ class Policy
2733
+ include Google::Apis::Core::Hashable
2734
+
2735
+ # Immutable. Customer that the Policy belongs to. The value is in the format '
2736
+ # customers/`customerId`'. The `customerId` must begin with "C" To find your
2737
+ # customer ID in Admin Console see https://support.google.com/a/answer/10070793.
2738
+ # Corresponds to the JSON property `customer`
2739
+ # @return [String]
2740
+ attr_accessor :customer
2741
+
2742
+ # Output only. Identifier. The [resource name](https://cloud.google.com/apis/
2743
+ # design/resource_names) of the Policy. Format: policies/`policy`.
2744
+ # Corresponds to the JSON property `name`
2745
+ # @return [String]
2746
+ attr_accessor :name
2747
+
2748
+ # PolicyQuery
2749
+ # Corresponds to the JSON property `policyQuery`
2750
+ # @return [Google::Apis::CloudidentityV1::PolicyQuery]
2751
+ attr_accessor :policy_query
2752
+
2753
+ # Setting
2754
+ # Corresponds to the JSON property `setting`
2755
+ # @return [Google::Apis::CloudidentityV1::Setting]
2756
+ attr_accessor :setting
2757
+
2758
+ # Output only. The type of the policy.
2759
+ # Corresponds to the JSON property `type`
2760
+ # @return [String]
2761
+ attr_accessor :type
2762
+
2763
+ def initialize(**args)
2764
+ update!(**args)
2765
+ end
2766
+
2767
+ # Update properties of this object
2768
+ def update!(**args)
2769
+ @customer = args[:customer] if args.key?(:customer)
2770
+ @name = args[:name] if args.key?(:name)
2771
+ @policy_query = args[:policy_query] if args.key?(:policy_query)
2772
+ @setting = args[:setting] if args.key?(:setting)
2773
+ @type = args[:type] if args.key?(:type)
2774
+ end
2775
+ end
2776
+
2777
+ # PolicyQuery
2778
+ class PolicyQuery
2779
+ include Google::Apis::Core::Hashable
2780
+
2781
+ # Immutable. The group that the query applies to. This field is only set if
2782
+ # there is a single value for group that satisfies all clauses of the query. If
2783
+ # no group applies, this will be the empty string.
2784
+ # Corresponds to the JSON property `group`
2785
+ # @return [String]
2786
+ attr_accessor :group
2787
+
2788
+ # Required. Immutable. Non-empty default. The OrgUnit the query applies to. This
2789
+ # field is only set if there is a single value for org_unit that satisfies all
2790
+ # clauses of the query.
2791
+ # Corresponds to the JSON property `orgUnit`
2792
+ # @return [String]
2793
+ attr_accessor :org_unit
2794
+
2795
+ # Immutable. The CEL query that defines which entities the Policy applies to (ex.
2796
+ # a User entity). For details about CEL see https://opensource.google.com/
2797
+ # projects/cel. The OrgUnits the Policy applies to are represented by a clause
2798
+ # like so: entity.org_units.exists(org_unit, org_unit.org_unit_id == orgUnitId('`
2799
+ # orgUnitId`')) The Group the Policy applies to are represented by a clause like
2800
+ # so: entity.groups.exists(group, group.group_id == groupId('`groupId`')) The
2801
+ # Licenses the Policy applies to are represented by a clause like so: entity.
2802
+ # licenses.exists(license, license in ['/product/`productId`/sku/`skuId`']) The
2803
+ # above clauses can be present in any combination, and used in conjunction with
2804
+ # the &&, || and ! operators. The org_unit and group fields below are helper
2805
+ # fields that contain the corresponding value(s) as the query to make the query
2806
+ # easier to use.
2807
+ # Corresponds to the JSON property `query`
2808
+ # @return [String]
2809
+ attr_accessor :query
2810
+
2811
+ # Output only. The decimal sort order of this PolicyQuery. The value is relative
2812
+ # to all other policies with the same setting type for the customer. (There are
2813
+ # no duplicates within this set).
2814
+ # Corresponds to the JSON property `sortOrder`
2815
+ # @return [Float]
2816
+ attr_accessor :sort_order
2817
+
2818
+ def initialize(**args)
2819
+ update!(**args)
2820
+ end
2821
+
2822
+ # Update properties of this object
2823
+ def update!(**args)
2824
+ @group = args[:group] if args.key?(:group)
2825
+ @org_unit = args[:org_unit] if args.key?(:org_unit)
2826
+ @query = args[:query] if args.key?(:query)
2827
+ @sort_order = args[:sort_order] if args.key?(:sort_order)
2828
+ end
2829
+ end
2830
+
2703
2831
  # The evaluated state of this restriction.
2704
2832
  class RestrictionEvaluation
2705
2833
  include Google::Apis::Core::Hashable
@@ -2993,6 +3121,31 @@ module Google
2993
3121
  end
2994
3122
  end
2995
3123
 
3124
+ # Setting
3125
+ class Setting
3126
+ include Google::Apis::Core::Hashable
3127
+
3128
+ # Required. Immutable. The type of the Setting. .
3129
+ # Corresponds to the JSON property `type`
3130
+ # @return [String]
3131
+ attr_accessor :type
3132
+
3133
+ # Required. The value of the Setting.
3134
+ # Corresponds to the JSON property `value`
3135
+ # @return [Hash<String,Object>]
3136
+ attr_accessor :value
3137
+
3138
+ def initialize(**args)
3139
+ update!(**args)
3140
+ end
3141
+
3142
+ # Update properties of this object
3143
+ def update!(**args)
3144
+ @type = args[:type] if args.key?(:type)
3145
+ @value = args[:value] if args.key?(:value)
3146
+ end
3147
+ end
3148
+
2996
3149
  # Controls sign-in behavior.
2997
3150
  class SignInBehavior
2998
3151
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudidentityV1
18
18
  # Version of the google-apis-cloudidentity_v1 gem
19
- GEM_VERSION = "0.46.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241126"
25
+ REVISION = "20241208"
26
26
  end
27
27
  end
28
28
  end
@@ -448,6 +448,12 @@ module Google
448
448
  include Google::Apis::Core::JsonObjectSupport
449
449
  end
450
450
 
451
+ class ListPoliciesResponse
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
451
457
  class ListUserInvitationsResponse
452
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
459
 
@@ -526,6 +532,18 @@ module Google
526
532
  include Google::Apis::Core::JsonObjectSupport
527
533
  end
528
534
 
535
+ class Policy
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
541
+ class PolicyQuery
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
529
547
  class RestrictionEvaluation
530
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
549
 
@@ -598,6 +616,12 @@ module Google
598
616
  include Google::Apis::Core::JsonObjectSupport
599
617
  end
600
618
 
619
+ class Setting
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
601
625
  class SignInBehavior
602
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
603
627
 
@@ -1293,6 +1317,15 @@ module Google
1293
1317
  end
1294
1318
  end
1295
1319
 
1320
+ class ListPoliciesResponse
1321
+ # @private
1322
+ class Representation < Google::Apis::Core::JsonRepresentation
1323
+ property :next_page_token, as: 'nextPageToken'
1324
+ collection :policies, as: 'policies', class: Google::Apis::CloudidentityV1::Policy, decorator: Google::Apis::CloudidentityV1::Policy::Representation
1325
+
1326
+ end
1327
+ end
1328
+
1296
1329
  class ListUserInvitationsResponse
1297
1330
  # @private
1298
1331
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1425,6 +1458,29 @@ module Google
1425
1458
  end
1426
1459
  end
1427
1460
 
1461
+ class Policy
1462
+ # @private
1463
+ class Representation < Google::Apis::Core::JsonRepresentation
1464
+ property :customer, as: 'customer'
1465
+ property :name, as: 'name'
1466
+ property :policy_query, as: 'policyQuery', class: Google::Apis::CloudidentityV1::PolicyQuery, decorator: Google::Apis::CloudidentityV1::PolicyQuery::Representation
1467
+
1468
+ property :setting, as: 'setting', class: Google::Apis::CloudidentityV1::Setting, decorator: Google::Apis::CloudidentityV1::Setting::Representation
1469
+
1470
+ property :type, as: 'type'
1471
+ end
1472
+ end
1473
+
1474
+ class PolicyQuery
1475
+ # @private
1476
+ class Representation < Google::Apis::Core::JsonRepresentation
1477
+ property :group, as: 'group'
1478
+ property :org_unit, as: 'orgUnit'
1479
+ property :query, as: 'query'
1480
+ property :sort_order, as: 'sortOrder'
1481
+ end
1482
+ end
1483
+
1428
1484
  class RestrictionEvaluation
1429
1485
  # @private
1430
1486
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1523,6 +1579,14 @@ module Google
1523
1579
  end
1524
1580
  end
1525
1581
 
1582
+ class Setting
1583
+ # @private
1584
+ class Representation < Google::Apis::Core::JsonRepresentation
1585
+ property :type, as: 'type'
1586
+ hash :value, as: 'value'
1587
+ end
1588
+ end
1589
+
1526
1590
  class SignInBehavior
1527
1591
  # @private
1528
1592
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2371,6 +2371,89 @@ module Google
2371
2371
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2372
2372
  execute_or_queue_command(command, &block)
2373
2373
  end
2374
+
2375
+ # Get a Policy
2376
+ # @param [String] name
2377
+ # Required. The name of the policy to retrieve. Format: "policies/`policy`".
2378
+ # @param [String] fields
2379
+ # Selector specifying which fields to include in a partial response.
2380
+ # @param [String] quota_user
2381
+ # Available to use for quota purposes for server-side applications. Can be any
2382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2383
+ # @param [Google::Apis::RequestOptions] options
2384
+ # Request-specific options
2385
+ #
2386
+ # @yield [result, err] Result & error if block supplied
2387
+ # @yieldparam result [Google::Apis::CloudidentityV1::Policy] parsed result object
2388
+ # @yieldparam err [StandardError] error object if request failed
2389
+ #
2390
+ # @return [Google::Apis::CloudidentityV1::Policy]
2391
+ #
2392
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2393
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2394
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2395
+ def get_policy(name, fields: nil, quota_user: nil, options: nil, &block)
2396
+ command = make_simple_command(:get, 'v1/{+name}', options)
2397
+ command.response_representation = Google::Apis::CloudidentityV1::Policy::Representation
2398
+ command.response_class = Google::Apis::CloudidentityV1::Policy
2399
+ command.params['name'] = name unless name.nil?
2400
+ command.query['fields'] = fields unless fields.nil?
2401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2402
+ execute_or_queue_command(command, &block)
2403
+ end
2404
+
2405
+ # List Policies
2406
+ # @param [String] filter
2407
+ # Optional. A CEL expression for filtering the results. Policies can be filtered
2408
+ # by application with this expression: setting.name = 'settings/gmail.*'
2409
+ # Policies can be filtered by setting type with this expression: setting.name = '
2410
+ # *.service_status' A maximum of one of the above setting.name clauses can be
2411
+ # used. Policies can be filtered by customer with this expression: customer = "
2412
+ # customers/`customer`" Where `customer` is the `id` from the [Admin SDK `
2413
+ # Customer` resource](https://developers.google.com/admin-sdk/directory/
2414
+ # reference/rest/v1/customers). You may use `customers/my_customer` to specify
2415
+ # your own organization. When no customer is mentioned it will be default to
2416
+ # customers/my_customer. A maximum of one customer clause can be used. The above
2417
+ # clauses can only be combined together in a single filter expression with the `&
2418
+ # &` operator.
2419
+ # @param [Fixnum] page_size
2420
+ # Optional. The maximum number of results to return. The service can return
2421
+ # fewer than this number. If omitted or set to 0, the default is 50 results per
2422
+ # page. The maximum allowed value is 100. `page_size` values greater than 100
2423
+ # default to 100.
2424
+ # @param [String] page_token
2425
+ # Optional. The pagination token received from a prior call to PoliciesService.
2426
+ # ListPolicies to retrieve the next page of results. When paginating, all other
2427
+ # parameters provided to `ListPoliciesRequest` must match the call that provided
2428
+ # the page token.
2429
+ # @param [String] fields
2430
+ # Selector specifying which fields to include in a partial response.
2431
+ # @param [String] quota_user
2432
+ # Available to use for quota purposes for server-side applications. Can be any
2433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2434
+ # @param [Google::Apis::RequestOptions] options
2435
+ # Request-specific options
2436
+ #
2437
+ # @yield [result, err] Result & error if block supplied
2438
+ # @yieldparam result [Google::Apis::CloudidentityV1::ListPoliciesResponse] parsed result object
2439
+ # @yieldparam err [StandardError] error object if request failed
2440
+ #
2441
+ # @return [Google::Apis::CloudidentityV1::ListPoliciesResponse]
2442
+ #
2443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2446
+ def list_policies(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2447
+ command = make_simple_command(:get, 'v1/policies', options)
2448
+ command.response_representation = Google::Apis::CloudidentityV1::ListPoliciesResponse::Representation
2449
+ command.response_class = Google::Apis::CloudidentityV1::ListPoliciesResponse
2450
+ command.query['filter'] = filter unless filter.nil?
2451
+ command.query['pageSize'] = page_size unless page_size.nil?
2452
+ command.query['pageToken'] = page_token unless page_token.nil?
2453
+ command.query['fields'] = fields unless fields.nil?
2454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2455
+ execute_or_queue_command(command, &block)
2456
+ end
2374
2457
 
2375
2458
  protected
2376
2459
 
@@ -50,6 +50,12 @@ module Google
50
50
  # See all of the Inbound SSO profiles and their assignments to any Org Units or Google Groups in your Cloud Identity Organization.
51
51
  AUTH_CLOUD_IDENTITY_INBOUNDSSO_READONLY = 'https://www.googleapis.com/auth/cloud-identity.inboundsso.readonly'
52
52
 
53
+ # See and edit policies in your Cloud Identity Organization.
54
+ AUTH_CLOUD_IDENTITY_POLICIES = 'https://www.googleapis.com/auth/cloud-identity.policies'
55
+
56
+ # See policies in your Cloud Identity Organization.
57
+ AUTH_CLOUD_IDENTITY_POLICIES_READONLY = 'https://www.googleapis.com/auth/cloud-identity.policies.readonly'
58
+
53
59
  # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
54
60
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
55
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudidentity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudidentity_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1/v0.47.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudidentity_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Identity API V1