google-apis-managedidentities_v1 0.12.0 → 0.13.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: c52a14dad1176cf0abaa36e14ff6b585db23a6a7bc3712be0aa37c26c7d9e9f5
4
- data.tar.gz: d96c99ab5db5fcee9a830e89c56205c383e962fff67acf7b377a804557d6bef8
3
+ metadata.gz: 14c6fd964f78de0c4fb8e9ee4ac8be3442dc2dabc6386d575588742099596ab4
4
+ data.tar.gz: 9dd0c1725734a15caee46999b5914aeac493ba6fa35cd88b4bcccc4ccc148aab
5
5
  SHA512:
6
- metadata.gz: 7c95e4e737a42d234a8966c9cba338bea33e0125769027264c5ad69f2f737dfa81a4c0b4b1b39388dbddbe5320443049dc333d11064f76c3449d7a731c41ad73
7
- data.tar.gz: f7367c61d1742e39c3efc4a20fc23dc538878dff1d2db2e3bccc863f61e5ac95e21841048377db4303caef233498d01f11fc9dc423e1b8f8ebb627affae6170c
6
+ metadata.gz: 62e45d89baf15dd47d2eaf0e6a0282bb6a780c829cb7e4bca2e69e11e4fa4a0e24dc5d423fc19c6f4acdd8e0ca915f12f839c0e0d36a6e257f382ae845020eb2
7
+ data.tar.gz: a53fc48911a794488663155956f36f9bd62337064959c402ca32feb374c6f7f6eb0c1ac45cb5105e60fbfe6b38e2074181d38cfee8ac4d2aafe9104343552fd8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-managedidentities_v1
2
2
 
3
+ ### v0.13.0 (2021-08-28)
4
+
5
+ * Regenerated from discovery document revision 20210819
6
+
3
7
  ### v0.12.0 (2021-07-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20210701
@@ -873,14 +873,6 @@ module Google
873
873
  class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
874
874
  include Google::Apis::Core::Hashable
875
875
 
876
- # By default node is eligible if instance is eligible. But individual node might
877
- # be excluded from SLO by adding entry here. For semantic see SloMetadata.
878
- # exclusions. If both instance and node level exclusions are present for time
879
- # period, the node level's reason will be reported by Eligibility Exporter.
880
- # Corresponds to the JSON property `exclusions`
881
- # @return [Array<Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
882
- attr_accessor :exclusions
883
-
884
876
  # The location of the node, if different from instance location.
885
877
  # Corresponds to the JSON property `location`
886
878
  # @return [String]
@@ -902,7 +894,6 @@ module Google
902
894
 
903
895
  # Update properties of this object
904
896
  def update!(**args)
905
- @exclusions = args[:exclusions] if args.key?(:exclusions)
906
897
  @location = args[:location] if args.key?(:location)
907
898
  @node_id = args[:node_id] if args.key?(:node_id)
908
899
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
@@ -997,71 +988,11 @@ module Google
997
988
  end
998
989
  end
999
990
 
1000
- # SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
1001
- class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
1002
- include Google::Apis::Core::Hashable
1003
-
1004
- # Exclusion duration. No restrictions on the possible values. When an ongoing
1005
- # operation is taking longer than initially expected, an existing entry in the
1006
- # exclusion list can be updated by extending the duration. This is supported by
1007
- # the subsystem exporting eligibility data as long as such extension is
1008
- # committed at least 10 minutes before the original exclusion expiration -
1009
- # otherwise it is possible that there will be "gaps" in the exclusion
1010
- # application in the exported timeseries.
1011
- # Corresponds to the JSON property `duration`
1012
- # @return [String]
1013
- attr_accessor :duration
1014
-
1015
- # Human-readable reason for the exclusion. This should be a static string (e.g. "
1016
- # Disruptive update in progress") and should not contain dynamically generated
1017
- # data (e.g. instance name). Can be left empty.
1018
- # Corresponds to the JSON property `reason`
1019
- # @return [String]
1020
- attr_accessor :reason
1021
-
1022
- # Name of an SLI that this exclusion applies to. Can be left empty, signaling
1023
- # that the instance should be excluded from all SLIs.
1024
- # Corresponds to the JSON property `sliName`
1025
- # @return [String]
1026
- attr_accessor :sli_name
1027
-
1028
- # Start time of the exclusion. No alignment (e.g. to a full minute) needed.
1029
- # Corresponds to the JSON property `startTime`
1030
- # @return [String]
1031
- attr_accessor :start_time
1032
-
1033
- def initialize(**args)
1034
- update!(**args)
1035
- end
1036
-
1037
- # Update properties of this object
1038
- def update!(**args)
1039
- @duration = args[:duration] if args.key?(:duration)
1040
- @reason = args[:reason] if args.key?(:reason)
1041
- @sli_name = args[:sli_name] if args.key?(:sli_name)
1042
- @start_time = args[:start_time] if args.key?(:start_time)
1043
- end
1044
- end
1045
-
1046
991
  # SloMetadata contains resources required for proper SLO classification of the
1047
992
  # instance.
1048
993
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
1049
994
  include Google::Apis::Core::Hashable
1050
995
 
1051
- # List of SLO exclusion windows. When multiple entries in the list match (
1052
- # matching the exclusion time-window against current time point) the exclusion
1053
- # reason used in the first matching entry will be published. It is not needed to
1054
- # include expired exclusion in this list, as only the currently applicable
1055
- # exclusions are taken into account by the eligibility exporting subsystem (the
1056
- # historical state of exclusions will be reflected in the historically produced
1057
- # timeseries regardless of the current state). This field can be used to mark
1058
- # the instance as temporary ineligible for the purpose of SLO calculation. For
1059
- # permanent instance SLO exclusion, use of custom instance eligibility is
1060
- # recommended. See 'eligibility' field below.
1061
- # Corresponds to the JSON property `exclusions`
1062
- # @return [Array<Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
1063
- attr_accessor :exclusions
1064
-
1065
996
  # Optional. List of nodes. Some producers need to use per-node metadata to
1066
997
  # calculate SLO. This field allows such producers to publish per-node SLO meta
1067
998
  # data, which will be consumed by SSA Eligibility Exporter and published in the
@@ -1088,7 +1019,6 @@ module Google
1088
1019
 
1089
1020
  # Update properties of this object
1090
1021
  def update!(**args)
1091
- @exclusions = args[:exclusions] if args.key?(:exclusions)
1092
1022
  @nodes = args[:nodes] if args.key?(:nodes)
1093
1023
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
1094
1024
  @tier = args[:tier] if args.key?(:tier)
@@ -1486,7 +1416,7 @@ module Google
1486
1416
  attr_accessor :api_version
1487
1417
 
1488
1418
  # Output only. Identifies whether the user has requested cancellation of the
1489
- # operation. Operations that have successfully been cancelled have Operation.
1419
+ # operation. Operations that have been cancelled successfully have Operation.
1490
1420
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1491
1421
  # CANCELLED`.
1492
1422
  # Corresponds to the JSON property `cancelRequested`
@@ -1559,7 +1489,7 @@ module Google
1559
1489
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1560
1490
  # roles/resourcemanager.organizationViewer condition: title: expirable access
1561
1491
  # description: Does not grant access after Sep 2020 expression: request.time <
1562
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1492
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1563
1493
  # description of IAM and its features, see the [IAM documentation](https://cloud.
1564
1494
  # google.com/iam/docs/).
1565
1495
  class Policy
@@ -1739,7 +1669,7 @@ module Google
1739
1669
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1740
1670
  # roles/resourcemanager.organizationViewer condition: title: expirable access
1741
1671
  # description: Does not grant access after Sep 2020 expression: request.time <
1742
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1672
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1743
1673
  # description of IAM and its features, see the [IAM documentation](https://cloud.
1744
1674
  # google.com/iam/docs/).
1745
1675
  # Corresponds to the JSON property `policy`
@@ -2021,8 +1951,7 @@ module Google
2021
1951
 
2022
1952
  # Deny Maintenance Period that is applied to resource to indicate when
2023
1953
  # maintenance is forbidden. User can specify zero or more non-overlapping deny
2024
- # periods. For V1, Maximum number of deny_maintenance_periods is expected to be
2025
- # one.
1954
+ # periods. Maximum number of deny_maintenance_periods expected is one.
2026
1955
  # Corresponds to the JSON property `denyMaintenancePeriods`
2027
1956
  # @return [Array<Google::Apis::ManagedidentitiesV1::DenyMaintenancePeriod>]
2028
1957
  attr_accessor :deny_maintenance_periods
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ManagedidentitiesV1
18
18
  # Version of the google-apis-managedidentities_v1 gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210701"
25
+ REVISION = "20210819"
26
26
  end
27
27
  end
28
28
  end
@@ -148,12 +148,6 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
153
-
154
- include Google::Apis::Core::JsonObjectSupport
155
- end
156
-
157
151
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
158
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
153
 
@@ -505,8 +499,6 @@ module Google
505
499
  class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
506
500
  # @private
507
501
  class Representation < Google::Apis::Core::JsonRepresentation
508
- collection :exclusions, as: 'exclusions', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
509
-
510
502
  property :location, as: 'location'
511
503
  property :node_id, as: 'nodeId'
512
504
  property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
@@ -538,21 +530,9 @@ module Google
538
530
  end
539
531
  end
540
532
 
541
- class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
542
- # @private
543
- class Representation < Google::Apis::Core::JsonRepresentation
544
- property :duration, as: 'duration'
545
- property :reason, as: 'reason'
546
- property :sli_name, as: 'sliName'
547
- property :start_time, as: 'startTime'
548
- end
549
- end
550
-
551
533
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
552
534
  # @private
553
535
  class Representation < Google::Apis::Core::JsonRepresentation
554
- collection :exclusions, as: 'exclusions', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
555
-
556
536
  collection :nodes, as: 'nodes', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
557
537
 
558
538
  property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
@@ -167,9 +167,9 @@ module Google
167
167
  # with the following restrictions: * Must contain only lowercase letters,
168
168
  # numbers, periods and hyphens. * Must start with a letter. * Must contain
169
169
  # between 2-64 characters. * Must end with a number or a letter. * Must not
170
- # start with period. * First segement length (mydomain form example above)
171
- # shouldn't exceed 15 chars. * The last segment cannot be fully numeric. * Must
172
- # be unique within the customer project.
170
+ # start with period. * First segment length (mydomain for example above) shouldn'
171
+ # t exceed 15 chars. * The last segment cannot be fully numeric. * Must be
172
+ # unique within the customer project.
173
173
  # @param [String] fields
174
174
  # Selector specifying which fields to include in a partial response.
175
175
  # @param [String] quota_user
@@ -902,6 +902,121 @@ module Google
902
902
  command.query['quotaUser'] = quota_user unless quota_user.nil?
903
903
  execute_or_queue_command(command, &block)
904
904
  end
905
+
906
+ # Gets the access control policy for a resource. Returns an empty policy if the
907
+ # resource exists and does not have a policy set.
908
+ # @param [String] resource
909
+ # REQUIRED: The resource for which the policy is being requested. See the
910
+ # operation documentation for the appropriate value for this field.
911
+ # @param [Fixnum] options_requested_policy_version
912
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
913
+ # 3. Requests specifying an invalid value will be rejected. Requests for
914
+ # policies with any conditional bindings must specify version 3. Policies
915
+ # without any conditional bindings may specify any valid value or leave the
916
+ # field unset. To learn which resources support conditions in their IAM policies,
917
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
918
+ # resource-policies).
919
+ # @param [String] fields
920
+ # Selector specifying which fields to include in a partial response.
921
+ # @param [String] quota_user
922
+ # Available to use for quota purposes for server-side applications. Can be any
923
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
924
+ # @param [Google::Apis::RequestOptions] options
925
+ # Request-specific options
926
+ #
927
+ # @yield [result, err] Result & error if block supplied
928
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Policy] parsed result object
929
+ # @yieldparam err [StandardError] error object if request failed
930
+ #
931
+ # @return [Google::Apis::ManagedidentitiesV1::Policy]
932
+ #
933
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
934
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
935
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
936
+ def get_project_location_global_peering_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
937
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
938
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Policy::Representation
939
+ command.response_class = Google::Apis::ManagedidentitiesV1::Policy
940
+ command.params['resource'] = resource unless resource.nil?
941
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
942
+ command.query['fields'] = fields unless fields.nil?
943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
944
+ execute_or_queue_command(command, &block)
945
+ end
946
+
947
+ # Sets the access control policy on the specified resource. Replaces any
948
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
949
+ # PERMISSION_DENIED` errors.
950
+ # @param [String] resource
951
+ # REQUIRED: The resource for which the policy is being specified. See the
952
+ # operation documentation for the appropriate value for this field.
953
+ # @param [Google::Apis::ManagedidentitiesV1::SetIamPolicyRequest] set_iam_policy_request_object
954
+ # @param [String] fields
955
+ # Selector specifying which fields to include in a partial response.
956
+ # @param [String] quota_user
957
+ # Available to use for quota purposes for server-side applications. Can be any
958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
+ # @param [Google::Apis::RequestOptions] options
960
+ # Request-specific options
961
+ #
962
+ # @yield [result, err] Result & error if block supplied
963
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Policy] parsed result object
964
+ # @yieldparam err [StandardError] error object if request failed
965
+ #
966
+ # @return [Google::Apis::ManagedidentitiesV1::Policy]
967
+ #
968
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
969
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
970
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
971
+ def set_peering_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
972
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
973
+ command.request_representation = Google::Apis::ManagedidentitiesV1::SetIamPolicyRequest::Representation
974
+ command.request_object = set_iam_policy_request_object
975
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Policy::Representation
976
+ command.response_class = Google::Apis::ManagedidentitiesV1::Policy
977
+ command.params['resource'] = resource unless resource.nil?
978
+ command.query['fields'] = fields unless fields.nil?
979
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
980
+ execute_or_queue_command(command, &block)
981
+ end
982
+
983
+ # Returns permissions that a caller has on the specified resource. If the
984
+ # resource does not exist, this will return an empty set of permissions, not a `
985
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
986
+ # permission-aware UIs and command-line tools, not for authorization checking.
987
+ # This operation may "fail open" without warning.
988
+ # @param [String] resource
989
+ # REQUIRED: The resource for which the policy detail is being requested. See the
990
+ # operation documentation for the appropriate value for this field.
991
+ # @param [Google::Apis::ManagedidentitiesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
992
+ # @param [String] fields
993
+ # Selector specifying which fields to include in a partial response.
994
+ # @param [String] quota_user
995
+ # Available to use for quota purposes for server-side applications. Can be any
996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
997
+ # @param [Google::Apis::RequestOptions] options
998
+ # Request-specific options
999
+ #
1000
+ # @yield [result, err] Result & error if block supplied
1001
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse] parsed result object
1002
+ # @yieldparam err [StandardError] error object if request failed
1003
+ #
1004
+ # @return [Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse]
1005
+ #
1006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1009
+ def test_peering_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1010
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1011
+ command.request_representation = Google::Apis::ManagedidentitiesV1::TestIamPermissionsRequest::Representation
1012
+ command.request_object = test_iam_permissions_request_object
1013
+ command.response_representation = Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse::Representation
1014
+ command.response_class = Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse
1015
+ command.params['resource'] = resource unless resource.nil?
1016
+ command.query['fields'] = fields unless fields.nil?
1017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1018
+ execute_or_queue_command(command, &block)
1019
+ end
905
1020
 
906
1021
  protected
907
1022
 
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # See, edit, configure, and delete your Google Cloud Platform data
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-managedidentities_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.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: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
61
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.12.0
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.13.0
63
63
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1
64
64
  post_install_message:
65
65
  rdoc_options: []