google-apis-dataform_v1beta1 0.4.0 → 0.5.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: 6eb372f38ccd7649d159a5285eb01d8905e6563e914b1f2575c7a014c242ed0c
4
- data.tar.gz: 506e00f73ac344cc5ed7a20443158488caa44bf7477582048a57f233b74d94ec
3
+ metadata.gz: e8f10dfe4aa7925d0c10338109d1c7a71d8a48a61dc77731259c3f828350999d
4
+ data.tar.gz: 4b7825170048d51c2a15cfd8f6c15c51f315262e292db4df7a2de0c96745626e
5
5
  SHA512:
6
- metadata.gz: 4a4a033e3a88c59270483b1688da4c6c82f14820f154c53a1ee866f598c98b6a7aab3decaad35f39f8da0cd17c45874fd4ebae721edb19702987e6c70d171427
7
- data.tar.gz: aa5b460d739ceee08e837faea313be45e43cfc835806a056c1c32ef638e119899ece8ba8db837e1df7689df1d8ac10037a154b05f425739b649c9be8f7a46435
6
+ metadata.gz: 85cdee2d0be13bd902f92d0fb056817a725317ef2ea3c7a63c89f8acdffb24b15fce6132017bcd61ccc979f8ed6e9b8a2de84139560becf2ccb9097b109a0b81
7
+ data.tar.gz: 61f6f1312fec032bf641333eaef2bcdd2d125704a17990c1b64c28b02519a207fd83040439e5cffb6bbf3bed1a2a9bbcdd12fde7dc0e64f258c5b796da71e5e6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dataform_v1beta1
2
2
 
3
+ ### v0.5.0 (2023-03-05)
4
+
5
+ * Regenerated from discovery document revision 20230225
6
+
3
7
  ### v0.4.0 (2023-02-19)
4
8
 
5
9
  * Regenerated using generator version 0.12.0
@@ -93,6 +93,82 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
+ # Associates `members`, or principals, with a `role`.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
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.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::DataformV1beta1::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the principals requesting access for a Google Cloud 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. Does
124
+ # not include identities that come from external identity providers (IdPs)
125
+ # through identity federation. * `user:`emailid``: An email address that
126
+ # represents a specific Google account. For example, `alice@example.com` . * `
127
+ # serviceAccount:`emailid``: An email address that represents a Google service
128
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
129
+ # serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
130
+ # identifier for a [Kubernetes service account](https://cloud.google.com/
131
+ # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
132
+ # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
133
+ # email address that represents a Google group. For example, `admins@example.com`
134
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
135
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
136
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
137
+ # representing a user that has been recently deleted. For example, `alice@
138
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
139
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
140
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
141
+ # (plus unique identifier) representing a service account that has been recently
142
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
143
+ # 123456789012345678901`. If the service account is undeleted, this value
144
+ # reverts to `serviceAccount:`emailid`` and the undeleted service account
145
+ # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
146
+ # An email address (plus unique identifier) representing a Google group that has
147
+ # been recently deleted. For example, `admins@example.com?uid=
148
+ # 123456789012345678901`. If the group is recovered, this value reverts to `
149
+ # group:`emailid`` and the recovered group retains the role in the binding.
150
+ # Corresponds to the JSON property `members`
151
+ # @return [Array<String>]
152
+ attr_accessor :members
153
+
154
+ # Role that is assigned to the list of `members`, or principals. For example, `
155
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
156
+ # Corresponds to the JSON property `role`
157
+ # @return [String]
158
+ attr_accessor :role
159
+
160
+ def initialize(**args)
161
+ update!(**args)
162
+ end
163
+
164
+ # Update properties of this object
165
+ def update!(**args)
166
+ @condition = args[:condition] if args.key?(:condition)
167
+ @members = args[:members] if args.key?(:members)
168
+ @role = args[:role] if args.key?(:role)
169
+ end
170
+ end
171
+
96
172
  # `CancelWorkflowInvocation` request message.
97
173
  class CancelWorkflowInvocationRequest
98
174
  include Google::Apis::Core::Hashable
@@ -487,6 +563,60 @@ module Google
487
563
  end
488
564
  end
489
565
 
566
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
567
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
568
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
569
+ # "Summary size limit" description: "Determines if a summary is less than 100
570
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
571
+ # Requestor is owner" description: "Determines if requestor is the document
572
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
573
+ # Logic): title: "Public documents" description: "Determine whether the document
574
+ # should be publicly visible" expression: "document.type != 'private' &&
575
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
576
+ # string" description: "Create a notification string with a timestamp."
577
+ # expression: "'New message received at ' + string(document.create_time)" The
578
+ # exact variables and functions that may be referenced within an expression are
579
+ # determined by the service that evaluates it. See the service documentation for
580
+ # additional information.
581
+ class Expr
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # Optional. Description of the expression. This is a longer text which describes
585
+ # the expression, e.g. when hovered over it in a UI.
586
+ # Corresponds to the JSON property `description`
587
+ # @return [String]
588
+ attr_accessor :description
589
+
590
+ # Textual representation of an expression in Common Expression Language syntax.
591
+ # Corresponds to the JSON property `expression`
592
+ # @return [String]
593
+ attr_accessor :expression
594
+
595
+ # Optional. String indicating the location of the expression for error reporting,
596
+ # e.g. a file name and a position in the file.
597
+ # Corresponds to the JSON property `location`
598
+ # @return [String]
599
+ attr_accessor :location
600
+
601
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
602
+ # This can be used e.g. in UIs which allow to enter the expression.
603
+ # Corresponds to the JSON property `title`
604
+ # @return [String]
605
+ attr_accessor :title
606
+
607
+ def initialize(**args)
608
+ update!(**args)
609
+ end
610
+
611
+ # Update properties of this object
612
+ def update!(**args)
613
+ @description = args[:description] if args.key?(:description)
614
+ @expression = args[:expression] if args.key?(:expression)
615
+ @location = args[:location] if args.key?(:location)
616
+ @title = args[:title] if args.key?(:title)
617
+ end
618
+ end
619
+
490
620
  # `FetchFileDiff` response message.
491
621
  class FetchFileDiffResponse
492
622
  include Google::Apis::Core::Hashable
@@ -1256,6 +1386,95 @@ module Google
1256
1386
  end
1257
1387
  end
1258
1388
 
1389
+ # An Identity and Access Management (IAM) policy, which specifies access
1390
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1391
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1392
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1393
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1394
+ # an IAM predefined role or a user-created custom role. For some types of Google
1395
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1396
+ # logical expression that allows access to a resource only if the expression
1397
+ # evaluates to `true`. A condition can add constraints based on attributes of
1398
+ # the request, the resource, or both. To learn which resources support
1399
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1400
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1401
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1402
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1403
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1404
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1405
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1406
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1407
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1408
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1409
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1410
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1411
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1412
+ # access description: Does not grant access after Sep 2020 expression: request.
1413
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1414
+ # a description of IAM and its features, see the [IAM documentation](https://
1415
+ # cloud.google.com/iam/docs/).
1416
+ class Policy
1417
+ include Google::Apis::Core::Hashable
1418
+
1419
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1420
+ # specify a `condition` that determines how and when the `bindings` are applied.
1421
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1422
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1423
+ # can be Google groups. Each occurrence of a principal counts towards these
1424
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1425
+ # example.com`, and not to any other principal, then you can add another 1,450
1426
+ # principals to the `bindings` in the `Policy`.
1427
+ # Corresponds to the JSON property `bindings`
1428
+ # @return [Array<Google::Apis::DataformV1beta1::Binding>]
1429
+ attr_accessor :bindings
1430
+
1431
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1432
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1433
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1434
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1435
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1436
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1437
+ # applied to the same version of the policy. **Important:** If you use IAM
1438
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1439
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1440
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1441
+ # are lost.
1442
+ # Corresponds to the JSON property `etag`
1443
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1444
+ # @return [String]
1445
+ attr_accessor :etag
1446
+
1447
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1448
+ # Requests that specify an invalid value are rejected. Any operation that
1449
+ # affects conditional role bindings must specify version `3`. This requirement
1450
+ # applies to the following operations: * Getting a policy that includes a
1451
+ # conditional role binding * Adding a conditional role binding to a policy *
1452
+ # Changing a conditional role binding in a policy * Removing any role binding,
1453
+ # with or without a condition, from a policy that includes conditions **
1454
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1455
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1456
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1457
+ # conditions in the version `3` policy are lost. If a policy does not include
1458
+ # any conditions, operations on that policy may specify any valid version or
1459
+ # leave the field unset. To learn which resources support conditions in their
1460
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1461
+ # conditions/resource-policies).
1462
+ # Corresponds to the JSON property `version`
1463
+ # @return [Fixnum]
1464
+ attr_accessor :version
1465
+
1466
+ def initialize(**args)
1467
+ update!(**args)
1468
+ end
1469
+
1470
+ # Update properties of this object
1471
+ def update!(**args)
1472
+ @bindings = args[:bindings] if args.key?(:bindings)
1473
+ @etag = args[:etag] if args.key?(:etag)
1474
+ @version = args[:version] if args.key?(:version)
1475
+ end
1476
+ end
1477
+
1259
1478
  # `PullGitCommits` request message.
1260
1479
  class PullGitCommitsRequest
1261
1480
  include Google::Apis::Core::Hashable
@@ -1792,6 +2011,51 @@ module Google
1792
2011
  end
1793
2012
  end
1794
2013
 
2014
+ # Request message for `SetIamPolicy` method.
2015
+ class SetIamPolicyRequest
2016
+ include Google::Apis::Core::Hashable
2017
+
2018
+ # An Identity and Access Management (IAM) policy, which specifies access
2019
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2020
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
2021
+ # Principals can be user accounts, service accounts, Google groups, and domains (
2022
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
2023
+ # an IAM predefined role or a user-created custom role. For some types of Google
2024
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
2025
+ # logical expression that allows access to a resource only if the expression
2026
+ # evaluates to `true`. A condition can add constraints based on attributes of
2027
+ # the request, the resource, or both. To learn which resources support
2028
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2029
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2030
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2031
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2032
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2033
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2034
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
2035
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2036
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2037
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
2038
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2039
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2040
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2041
+ # access description: Does not grant access after Sep 2020 expression: request.
2042
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2043
+ # a description of IAM and its features, see the [IAM documentation](https://
2044
+ # cloud.google.com/iam/docs/).
2045
+ # Corresponds to the JSON property `policy`
2046
+ # @return [Google::Apis::DataformV1beta1::Policy]
2047
+ attr_accessor :policy
2048
+
2049
+ def initialize(**args)
2050
+ update!(**args)
2051
+ end
2052
+
2053
+ # Update properties of this object
2054
+ def update!(**args)
2055
+ @policy = args[:policy] if args.key?(:policy)
2056
+ end
2057
+ end
2058
+
1795
2059
  # The `Status` type defines a logical error model that is suitable for different
1796
2060
  # programming environments, including REST APIs and RPC APIs. It is used by [
1797
2061
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1863,6 +2127,46 @@ module Google
1863
2127
  end
1864
2128
  end
1865
2129
 
2130
+ # Request message for `TestIamPermissions` method.
2131
+ class TestIamPermissionsRequest
2132
+ include Google::Apis::Core::Hashable
2133
+
2134
+ # The set of permissions to check for the `resource`. Permissions with wildcards
2135
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
2136
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2137
+ # Corresponds to the JSON property `permissions`
2138
+ # @return [Array<String>]
2139
+ attr_accessor :permissions
2140
+
2141
+ def initialize(**args)
2142
+ update!(**args)
2143
+ end
2144
+
2145
+ # Update properties of this object
2146
+ def update!(**args)
2147
+ @permissions = args[:permissions] if args.key?(:permissions)
2148
+ end
2149
+ end
2150
+
2151
+ # Response message for `TestIamPermissions` method.
2152
+ class TestIamPermissionsResponse
2153
+ include Google::Apis::Core::Hashable
2154
+
2155
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2156
+ # Corresponds to the JSON property `permissions`
2157
+ # @return [Array<String>]
2158
+ attr_accessor :permissions
2159
+
2160
+ def initialize(**args)
2161
+ update!(**args)
2162
+ end
2163
+
2164
+ # Update properties of this object
2165
+ def update!(**args)
2166
+ @permissions = args[:permissions] if args.key?(:permissions)
2167
+ end
2168
+ end
2169
+
1866
2170
  # Represents the Git state of a file with uncommitted changes.
1867
2171
  class UncommittedFileChange
1868
2172
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DataformV1beta1
18
18
  # Version of the google-apis-dataform_v1beta1 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230128"
25
+ REVISION = "20230225"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class CancelWorkflowInvocationRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -100,6 +106,12 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class Expr
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class FetchFileDiffResponse
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
@@ -256,6 +268,12 @@ module Google
256
268
  include Google::Apis::Core::JsonObjectSupport
257
269
  end
258
270
 
271
+ class Policy
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
259
277
  class PullGitCommitsRequest
260
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
279
 
@@ -346,6 +364,12 @@ module Google
346
364
  include Google::Apis::Core::JsonObjectSupport
347
365
  end
348
366
 
367
+ class SetIamPolicyRequest
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
349
373
  class Status
350
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
375
 
@@ -358,6 +382,18 @@ module Google
358
382
  include Google::Apis::Core::JsonObjectSupport
359
383
  end
360
384
 
385
+ class TestIamPermissionsRequest
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class TestIamPermissionsResponse
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
361
397
  class UncommittedFileChange
362
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
399
 
@@ -428,6 +464,16 @@ module Google
428
464
  end
429
465
  end
430
466
 
467
+ class Binding
468
+ # @private
469
+ class Representation < Google::Apis::Core::JsonRepresentation
470
+ property :condition, as: 'condition', class: Google::Apis::DataformV1beta1::Expr, decorator: Google::Apis::DataformV1beta1::Expr::Representation
471
+
472
+ collection :members, as: 'members'
473
+ property :role, as: 'role'
474
+ end
475
+ end
476
+
431
477
  class CancelWorkflowInvocationRequest
432
478
  # @private
433
479
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -543,6 +589,16 @@ module Google
543
589
  end
544
590
  end
545
591
 
592
+ class Expr
593
+ # @private
594
+ class Representation < Google::Apis::Core::JsonRepresentation
595
+ property :description, as: 'description'
596
+ property :expression, as: 'expression'
597
+ property :location, as: 'location'
598
+ property :title, as: 'title'
599
+ end
600
+ end
601
+
546
602
  class FetchFileDiffResponse
547
603
  # @private
548
604
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -775,6 +831,16 @@ module Google
775
831
  end
776
832
  end
777
833
 
834
+ class Policy
835
+ # @private
836
+ class Representation < Google::Apis::Core::JsonRepresentation
837
+ collection :bindings, as: 'bindings', class: Google::Apis::DataformV1beta1::Binding, decorator: Google::Apis::DataformV1beta1::Binding::Representation
838
+
839
+ property :etag, :base64 => true, as: 'etag'
840
+ property :version, as: 'version'
841
+ end
842
+ end
843
+
778
844
  class PullGitCommitsRequest
779
845
  # @private
780
846
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -927,6 +993,14 @@ module Google
927
993
  end
928
994
  end
929
995
 
996
+ class SetIamPolicyRequest
997
+ # @private
998
+ class Representation < Google::Apis::Core::JsonRepresentation
999
+ property :policy, as: 'policy', class: Google::Apis::DataformV1beta1::Policy, decorator: Google::Apis::DataformV1beta1::Policy::Representation
1000
+
1001
+ end
1002
+ end
1003
+
930
1004
  class Status
931
1005
  # @private
932
1006
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -945,6 +1019,20 @@ module Google
945
1019
  end
946
1020
  end
947
1021
 
1022
+ class TestIamPermissionsRequest
1023
+ # @private
1024
+ class Representation < Google::Apis::Core::JsonRepresentation
1025
+ collection :permissions, as: 'permissions'
1026
+ end
1027
+ end
1028
+
1029
+ class TestIamPermissionsResponse
1030
+ # @private
1031
+ class Representation < Google::Apis::Core::JsonRepresentation
1032
+ collection :permissions, as: 'permissions'
1033
+ end
1034
+ end
1035
+
948
1036
  class UncommittedFileChange
949
1037
  # @private
950
1038
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -258,6 +258,51 @@ module Google
258
258
  execute_or_queue_command(command, &block)
259
259
  end
260
260
 
261
+ # Gets the access control policy for a resource. Returns an empty policy if the
262
+ # resource exists and does not have a policy set.
263
+ # @param [String] resource
264
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
265
+ # names](https://cloud.google.com/apis/design/resource_names) for the
266
+ # appropriate value for this field.
267
+ # @param [Fixnum] options_requested_policy_version
268
+ # Optional. The maximum policy version that will be used to format the policy.
269
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
270
+ # rejected. Requests for policies with any conditional role bindings must
271
+ # specify version 3. Policies with no conditional role bindings may specify any
272
+ # valid value or leave the field unset. The policy in the response might use the
273
+ # policy version that you specified, or it might use a lower policy version. For
274
+ # example, if you specify version 3, but the policy has no conditional role
275
+ # bindings, the response uses version 1. To learn which resources support
276
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
277
+ # google.com/iam/help/conditions/resource-policies).
278
+ # @param [String] fields
279
+ # Selector specifying which fields to include in a partial response.
280
+ # @param [String] quota_user
281
+ # Available to use for quota purposes for server-side applications. Can be any
282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
283
+ # @param [Google::Apis::RequestOptions] options
284
+ # Request-specific options
285
+ #
286
+ # @yield [result, err] Result & error if block supplied
287
+ # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
288
+ # @yieldparam err [StandardError] error object if request failed
289
+ #
290
+ # @return [Google::Apis::DataformV1beta1::Policy]
291
+ #
292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
295
+ def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
296
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
297
+ command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
298
+ command.response_class = Google::Apis::DataformV1beta1::Policy
299
+ command.params['resource'] = resource unless resource.nil?
300
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
301
+ command.query['fields'] = fields unless fields.nil?
302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
303
+ execute_or_queue_command(command, &block)
304
+ end
305
+
261
306
  # Lists Repositories in a given project and location.
262
307
  # @param [String] parent
263
308
  # Required. The location in which to list repositories. Must be in the format `
@@ -345,6 +390,82 @@ module Google
345
390
  execute_or_queue_command(command, &block)
346
391
  end
347
392
 
393
+ # Sets the access control policy on the specified resource. Replaces any
394
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
395
+ # PERMISSION_DENIED` errors.
396
+ # @param [String] resource
397
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
398
+ # names](https://cloud.google.com/apis/design/resource_names) for the
399
+ # appropriate value for this field.
400
+ # @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
403
+ # @param [String] quota_user
404
+ # Available to use for quota purposes for server-side applications. Can be any
405
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
406
+ # @param [Google::Apis::RequestOptions] options
407
+ # Request-specific options
408
+ #
409
+ # @yield [result, err] Result & error if block supplied
410
+ # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
411
+ # @yieldparam err [StandardError] error object if request failed
412
+ #
413
+ # @return [Google::Apis::DataformV1beta1::Policy]
414
+ #
415
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
418
+ def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
419
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
420
+ command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation
421
+ command.request_object = set_iam_policy_request_object
422
+ command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
423
+ command.response_class = Google::Apis::DataformV1beta1::Policy
424
+ command.params['resource'] = resource unless resource.nil?
425
+ command.query['fields'] = fields unless fields.nil?
426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
427
+ execute_or_queue_command(command, &block)
428
+ end
429
+
430
+ # Returns permissions that a caller has on the specified resource. If the
431
+ # resource does not exist, this will return an empty set of permissions, not a `
432
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
433
+ # permission-aware UIs and command-line tools, not for authorization checking.
434
+ # This operation may "fail open" without warning.
435
+ # @param [String] resource
436
+ # REQUIRED: The resource for which the policy detail is being requested. See [
437
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
438
+ # appropriate value for this field.
439
+ # @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [String] quota_user
443
+ # Available to use for quota purposes for server-side applications. Can be any
444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
459
+ command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation
460
+ command.request_object = test_iam_permissions_request_object
461
+ command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation
462
+ command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse
463
+ command.params['resource'] = resource unless resource.nil?
464
+ command.query['fields'] = fields unless fields.nil?
465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
466
+ execute_or_queue_command(command, &block)
467
+ end
468
+
348
469
  # Creates a new CompilationResult in a given project and location.
349
470
  # @param [String] parent
350
471
  # Required. The repository in which to create the compilation result. Must be in
@@ -1298,6 +1419,51 @@ module Google
1298
1419
  execute_or_queue_command(command, &block)
1299
1420
  end
1300
1421
 
1422
+ # Gets the access control policy for a resource. Returns an empty policy if the
1423
+ # resource exists and does not have a policy set.
1424
+ # @param [String] resource
1425
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1426
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1427
+ # appropriate value for this field.
1428
+ # @param [Fixnum] options_requested_policy_version
1429
+ # Optional. The maximum policy version that will be used to format the policy.
1430
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1431
+ # rejected. Requests for policies with any conditional role bindings must
1432
+ # specify version 3. Policies with no conditional role bindings may specify any
1433
+ # valid value or leave the field unset. The policy in the response might use the
1434
+ # policy version that you specified, or it might use a lower policy version. For
1435
+ # example, if you specify version 3, but the policy has no conditional role
1436
+ # bindings, the response uses version 1. To learn which resources support
1437
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1438
+ # google.com/iam/help/conditions/resource-policies).
1439
+ # @param [String] fields
1440
+ # Selector specifying which fields to include in a partial response.
1441
+ # @param [String] quota_user
1442
+ # Available to use for quota purposes for server-side applications. Can be any
1443
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1444
+ # @param [Google::Apis::RequestOptions] options
1445
+ # Request-specific options
1446
+ #
1447
+ # @yield [result, err] Result & error if block supplied
1448
+ # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
1449
+ # @yieldparam err [StandardError] error object if request failed
1450
+ #
1451
+ # @return [Google::Apis::DataformV1beta1::Policy]
1452
+ #
1453
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1454
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1455
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1456
+ def get_project_location_repository_workspace_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1457
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1458
+ command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
1459
+ command.response_class = Google::Apis::DataformV1beta1::Policy
1460
+ command.params['resource'] = resource unless resource.nil?
1461
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1462
+ command.query['fields'] = fields unless fields.nil?
1463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1464
+ execute_or_queue_command(command, &block)
1465
+ end
1466
+
1301
1467
  # Installs dependency NPM packages (inside a Workspace).
1302
1468
  # @param [String] workspace
1303
1469
  # Required. The workspace's name.
@@ -1723,6 +1889,82 @@ module Google
1723
1889
  execute_or_queue_command(command, &block)
1724
1890
  end
1725
1891
 
1892
+ # Sets the access control policy on the specified resource. Replaces any
1893
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1894
+ # PERMISSION_DENIED` errors.
1895
+ # @param [String] resource
1896
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1897
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1898
+ # appropriate value for this field.
1899
+ # @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1900
+ # @param [String] fields
1901
+ # Selector specifying which fields to include in a partial response.
1902
+ # @param [String] quota_user
1903
+ # Available to use for quota purposes for server-side applications. Can be any
1904
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1905
+ # @param [Google::Apis::RequestOptions] options
1906
+ # Request-specific options
1907
+ #
1908
+ # @yield [result, err] Result & error if block supplied
1909
+ # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object
1910
+ # @yieldparam err [StandardError] error object if request failed
1911
+ #
1912
+ # @return [Google::Apis::DataformV1beta1::Policy]
1913
+ #
1914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1916
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1917
+ def set_workspace_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1918
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1919
+ command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation
1920
+ command.request_object = set_iam_policy_request_object
1921
+ command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation
1922
+ command.response_class = Google::Apis::DataformV1beta1::Policy
1923
+ command.params['resource'] = resource unless resource.nil?
1924
+ command.query['fields'] = fields unless fields.nil?
1925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1926
+ execute_or_queue_command(command, &block)
1927
+ end
1928
+
1929
+ # Returns permissions that a caller has on the specified resource. If the
1930
+ # resource does not exist, this will return an empty set of permissions, not a `
1931
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1932
+ # permission-aware UIs and command-line tools, not for authorization checking.
1933
+ # This operation may "fail open" without warning.
1934
+ # @param [String] resource
1935
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1936
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1937
+ # appropriate value for this field.
1938
+ # @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
1939
+ # @param [String] fields
1940
+ # Selector specifying which fields to include in a partial response.
1941
+ # @param [String] quota_user
1942
+ # Available to use for quota purposes for server-side applications. Can be any
1943
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1944
+ # @param [Google::Apis::RequestOptions] options
1945
+ # Request-specific options
1946
+ #
1947
+ # @yield [result, err] Result & error if block supplied
1948
+ # @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object
1949
+ # @yieldparam err [StandardError] error object if request failed
1950
+ #
1951
+ # @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse]
1952
+ #
1953
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1954
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1955
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1956
+ def test_workspace_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1957
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1958
+ command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation
1959
+ command.request_object = test_iam_permissions_request_object
1960
+ command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation
1961
+ command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse
1962
+ command.params['resource'] = resource unless resource.nil?
1963
+ command.query['fields'] = fields unless fields.nil?
1964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1965
+ execute_or_queue_command(command, &block)
1966
+ end
1967
+
1726
1968
  # Writes to a file (inside a Workspace).
1727
1969
  # @param [String] workspace
1728
1970
  # Required. The workspace's name.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dataform_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2023-03-05 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-dataform_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.5.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataform_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []