google-apis-dataproc_v1 0.52.0 → 0.53.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e0009331e21b257c87de77b5c447dcfc0864888c4e213c86646f285ab2d9d01
|
4
|
+
data.tar.gz: cb3b1623d60af4e0a9b9b1a84593aed70074b334b3ca7646762a1101837ccd57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c4ff5916cf5a1f50564f6ec8c85285e0c6a7d34340d1c793aee5678041226f9b388155e80cf7d2b9d9704d4390fbe6954abd0a4ecee9313ceb6c0c9631181c8
|
7
|
+
data.tar.gz: db5854659d012db39b4b404e7857f3bb730377181ebb0211c08f54f3be8ac38978e785ab9457f9e9a8913640cd5d61a1dcc8a47d4213ca9fc513cbc4550d9327
|
data/CHANGELOG.md
CHANGED
@@ -1312,7 +1312,7 @@ module Google
|
|
1312
1312
|
# while it's idling. Exceeding this threshold causes the session to terminate.
|
1313
1313
|
# This field cannot be set on a batch workload. Minimum value is 10 minutes;
|
1314
1314
|
# maximum value is 14 days (see JSON representation of Duration (https://
|
1315
|
-
# developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to
|
1315
|
+
# developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 1 hour
|
1316
1316
|
# if not set. If both ttl and idle_ttl are specified for an interactive session,
|
1317
1317
|
# the conditions are treated as OR conditions: the workload will be terminated
|
1318
1318
|
# when it has been idle for idle_ttl or when ttl has been exceeded, whichever
|
@@ -2124,6 +2124,41 @@ module Google
|
|
2124
2124
|
end
|
2125
2125
|
end
|
2126
2126
|
|
2127
|
+
# A request to inject credentials to a session.
|
2128
|
+
class InjectSessionCredentialsRequest
|
2129
|
+
include Google::Apis::Core::Hashable
|
2130
|
+
|
2131
|
+
# Required. The encrypted credentials being injected in to the session.The
|
2132
|
+
# client is responsible for encrypting the credentials in a way that is
|
2133
|
+
# supported by the session.A wrapped value is used here so that the actual
|
2134
|
+
# contents of the encrypted credentials are not written to audit logs.
|
2135
|
+
# Corresponds to the JSON property `credentialsCiphertext`
|
2136
|
+
# @return [String]
|
2137
|
+
attr_accessor :credentials_ciphertext
|
2138
|
+
|
2139
|
+
# Optional. A unique ID used to identify the request. If the service receives
|
2140
|
+
# two TerminateSessionRequest (https://cloud.google.com/dataproc/docs/reference/
|
2141
|
+
# rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)
|
2142
|
+
# s with the same ID, the first request is ignored to ensure the most recent
|
2143
|
+
# credentials are injected.Recommendation: Set this value to a UUID (https://en.
|
2144
|
+
# wikipedia.org/wiki/Universally_unique_identifier).The value must contain only
|
2145
|
+
# letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The
|
2146
|
+
# maximum length is 40 characters.
|
2147
|
+
# Corresponds to the JSON property `requestId`
|
2148
|
+
# @return [String]
|
2149
|
+
attr_accessor :request_id
|
2150
|
+
|
2151
|
+
def initialize(**args)
|
2152
|
+
update!(**args)
|
2153
|
+
end
|
2154
|
+
|
2155
|
+
# Update properties of this object
|
2156
|
+
def update!(**args)
|
2157
|
+
@credentials_ciphertext = args[:credentials_ciphertext] if args.key?(:credentials_ciphertext)
|
2158
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
2159
|
+
end
|
2160
|
+
end
|
2161
|
+
|
2127
2162
|
# Configuration for the size bounds of an instance group, including its
|
2128
2163
|
# proportional size to other groups.
|
2129
2164
|
class InstanceGroupAutoscalingPolicyConfig
|
@@ -2751,6 +2786,31 @@ module Google
|
|
2751
2786
|
end
|
2752
2787
|
end
|
2753
2788
|
|
2789
|
+
# Jupyter configuration for an interactive session.
|
2790
|
+
class JupyterConfig
|
2791
|
+
include Google::Apis::Core::Hashable
|
2792
|
+
|
2793
|
+
# Optional. Display name, shown in the Jupyter kernelspec card.
|
2794
|
+
# Corresponds to the JSON property `displayName`
|
2795
|
+
# @return [String]
|
2796
|
+
attr_accessor :display_name
|
2797
|
+
|
2798
|
+
# Optional. Kernel
|
2799
|
+
# Corresponds to the JSON property `kernel`
|
2800
|
+
# @return [String]
|
2801
|
+
attr_accessor :kernel
|
2802
|
+
|
2803
|
+
def initialize(**args)
|
2804
|
+
update!(**args)
|
2805
|
+
end
|
2806
|
+
|
2807
|
+
# Update properties of this object
|
2808
|
+
def update!(**args)
|
2809
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2810
|
+
@kernel = args[:kernel] if args.key?(:kernel)
|
2811
|
+
end
|
2812
|
+
end
|
2813
|
+
|
2754
2814
|
# Specifies Kerberos related configuration.
|
2755
2815
|
class KerberosConfig
|
2756
2816
|
include Google::Apis::Core::Hashable
|
@@ -3116,6 +3176,58 @@ module Google
|
|
3116
3176
|
end
|
3117
3177
|
end
|
3118
3178
|
|
3179
|
+
# A list of session templates.
|
3180
|
+
class ListSessionTemplatesResponse
|
3181
|
+
include Google::Apis::Core::Hashable
|
3182
|
+
|
3183
|
+
# A token, which can be sent as page_token to retrieve the next page. If this
|
3184
|
+
# field is omitted, there are no subsequent pages.
|
3185
|
+
# Corresponds to the JSON property `nextPageToken`
|
3186
|
+
# @return [String]
|
3187
|
+
attr_accessor :next_page_token
|
3188
|
+
|
3189
|
+
# Output only. Session template list
|
3190
|
+
# Corresponds to the JSON property `sessionTemplates`
|
3191
|
+
# @return [Array<Google::Apis::DataprocV1::SessionTemplate>]
|
3192
|
+
attr_accessor :session_templates
|
3193
|
+
|
3194
|
+
def initialize(**args)
|
3195
|
+
update!(**args)
|
3196
|
+
end
|
3197
|
+
|
3198
|
+
# Update properties of this object
|
3199
|
+
def update!(**args)
|
3200
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3201
|
+
@session_templates = args[:session_templates] if args.key?(:session_templates)
|
3202
|
+
end
|
3203
|
+
end
|
3204
|
+
|
3205
|
+
# A list of interactive sessions.
|
3206
|
+
class ListSessionsResponse
|
3207
|
+
include Google::Apis::Core::Hashable
|
3208
|
+
|
3209
|
+
# A token, which can be sent as page_token to retrieve the next page. If this
|
3210
|
+
# field is omitted, there are no subsequent pages.
|
3211
|
+
# Corresponds to the JSON property `nextPageToken`
|
3212
|
+
# @return [String]
|
3213
|
+
attr_accessor :next_page_token
|
3214
|
+
|
3215
|
+
# Output only. The sessions from the specified collection.
|
3216
|
+
# Corresponds to the JSON property `sessions`
|
3217
|
+
# @return [Array<Google::Apis::DataprocV1::Session>]
|
3218
|
+
attr_accessor :sessions
|
3219
|
+
|
3220
|
+
def initialize(**args)
|
3221
|
+
update!(**args)
|
3222
|
+
end
|
3223
|
+
|
3224
|
+
# Update properties of this object
|
3225
|
+
def update!(**args)
|
3226
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3227
|
+
@sessions = args[:sessions] if args.key?(:sessions)
|
3228
|
+
end
|
3229
|
+
end
|
3230
|
+
|
3119
3231
|
# A response to a request to list workflow templates in a project.
|
3120
3232
|
class ListWorkflowTemplatesResponse
|
3121
3233
|
include Google::Apis::Core::Hashable
|
@@ -4370,6 +4482,120 @@ module Google
|
|
4370
4482
|
end
|
4371
4483
|
end
|
4372
4484
|
|
4485
|
+
# A representation of a session in the service. Next ID: 18
|
4486
|
+
class Session
|
4487
|
+
include Google::Apis::Core::Hashable
|
4488
|
+
|
4489
|
+
# Output only. The time when the session was created.
|
4490
|
+
# Corresponds to the JSON property `createTime`
|
4491
|
+
# @return [String]
|
4492
|
+
attr_accessor :create_time
|
4493
|
+
|
4494
|
+
# Output only. The email address of the user who created the session.
|
4495
|
+
# Corresponds to the JSON property `creator`
|
4496
|
+
# @return [String]
|
4497
|
+
attr_accessor :creator
|
4498
|
+
|
4499
|
+
# Environment configuration for a workload.
|
4500
|
+
# Corresponds to the JSON property `environmentConfig`
|
4501
|
+
# @return [Google::Apis::DataprocV1::EnvironmentConfig]
|
4502
|
+
attr_accessor :environment_config
|
4503
|
+
|
4504
|
+
# Jupyter configuration for an interactive session.
|
4505
|
+
# Corresponds to the JSON property `jupyterSession`
|
4506
|
+
# @return [Google::Apis::DataprocV1::JupyterConfig]
|
4507
|
+
attr_accessor :jupyter_session
|
4508
|
+
|
4509
|
+
# Optional. The labels to associate with this session. Label keys must contain 1
|
4510
|
+
# to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
|
4511
|
+
# rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
|
4512
|
+
# characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
|
4513
|
+
# . No more than 32 labels can be associated with a session.
|
4514
|
+
# Corresponds to the JSON property `labels`
|
4515
|
+
# @return [Hash<String,String>]
|
4516
|
+
attr_accessor :labels
|
4517
|
+
|
4518
|
+
# Required. The resource name of the session.
|
4519
|
+
# Corresponds to the JSON property `name`
|
4520
|
+
# @return [String]
|
4521
|
+
attr_accessor :name
|
4522
|
+
|
4523
|
+
# Runtime configuration for a workload.
|
4524
|
+
# Corresponds to the JSON property `runtimeConfig`
|
4525
|
+
# @return [Google::Apis::DataprocV1::RuntimeConfig]
|
4526
|
+
attr_accessor :runtime_config
|
4527
|
+
|
4528
|
+
# Runtime information about workload execution.
|
4529
|
+
# Corresponds to the JSON property `runtimeInfo`
|
4530
|
+
# @return [Google::Apis::DataprocV1::RuntimeInfo]
|
4531
|
+
attr_accessor :runtime_info
|
4532
|
+
|
4533
|
+
# Optional. The session template used by the session.Only resource names
|
4534
|
+
# including project ID and location are valid.Example: * https://www.googleapis.
|
4535
|
+
# com/compute/v1/projects/[project_id]/locations/[dataproc_region]/
|
4536
|
+
# sessionTemplates/[template_id] * projects/[project_id]/locations/[
|
4537
|
+
# dataproc_region]/sessionTemplates/[template_id]Note that the template must be
|
4538
|
+
# in the same project and Dataproc region.
|
4539
|
+
# Corresponds to the JSON property `sessionTemplate`
|
4540
|
+
# @return [String]
|
4541
|
+
attr_accessor :session_template
|
4542
|
+
|
4543
|
+
# Output only. A state of the session.
|
4544
|
+
# Corresponds to the JSON property `state`
|
4545
|
+
# @return [String]
|
4546
|
+
attr_accessor :state
|
4547
|
+
|
4548
|
+
# Output only. Historical state information for the session.
|
4549
|
+
# Corresponds to the JSON property `stateHistory`
|
4550
|
+
# @return [Array<Google::Apis::DataprocV1::SessionStateHistory>]
|
4551
|
+
attr_accessor :state_history
|
4552
|
+
|
4553
|
+
# Output only. Session state details, such as a failure description if the state
|
4554
|
+
# is FAILED.
|
4555
|
+
# Corresponds to the JSON property `stateMessage`
|
4556
|
+
# @return [String]
|
4557
|
+
attr_accessor :state_message
|
4558
|
+
|
4559
|
+
# Output only. The time when the session entered a current state.
|
4560
|
+
# Corresponds to the JSON property `stateTime`
|
4561
|
+
# @return [String]
|
4562
|
+
attr_accessor :state_time
|
4563
|
+
|
4564
|
+
# Optional. The email address of the user who owns the session.
|
4565
|
+
# Corresponds to the JSON property `user`
|
4566
|
+
# @return [String]
|
4567
|
+
attr_accessor :user
|
4568
|
+
|
4569
|
+
# Output only. A session UUID (Unique Universal Identifier). The service
|
4570
|
+
# generates this value when it creates the session.
|
4571
|
+
# Corresponds to the JSON property `uuid`
|
4572
|
+
# @return [String]
|
4573
|
+
attr_accessor :uuid
|
4574
|
+
|
4575
|
+
def initialize(**args)
|
4576
|
+
update!(**args)
|
4577
|
+
end
|
4578
|
+
|
4579
|
+
# Update properties of this object
|
4580
|
+
def update!(**args)
|
4581
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4582
|
+
@creator = args[:creator] if args.key?(:creator)
|
4583
|
+
@environment_config = args[:environment_config] if args.key?(:environment_config)
|
4584
|
+
@jupyter_session = args[:jupyter_session] if args.key?(:jupyter_session)
|
4585
|
+
@labels = args[:labels] if args.key?(:labels)
|
4586
|
+
@name = args[:name] if args.key?(:name)
|
4587
|
+
@runtime_config = args[:runtime_config] if args.key?(:runtime_config)
|
4588
|
+
@runtime_info = args[:runtime_info] if args.key?(:runtime_info)
|
4589
|
+
@session_template = args[:session_template] if args.key?(:session_template)
|
4590
|
+
@state = args[:state] if args.key?(:state)
|
4591
|
+
@state_history = args[:state_history] if args.key?(:state_history)
|
4592
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
4593
|
+
@state_time = args[:state_time] if args.key?(:state_time)
|
4594
|
+
@user = args[:user] if args.key?(:user)
|
4595
|
+
@uuid = args[:uuid] if args.key?(:uuid)
|
4596
|
+
end
|
4597
|
+
end
|
4598
|
+
|
4373
4599
|
# Metadata describing the Session operation.
|
4374
4600
|
class SessionOperationMetadata
|
4375
4601
|
include Google::Apis::Core::Hashable
|
@@ -4431,6 +4657,109 @@ module Google
|
|
4431
4657
|
end
|
4432
4658
|
end
|
4433
4659
|
|
4660
|
+
# Historical state information.
|
4661
|
+
class SessionStateHistory
|
4662
|
+
include Google::Apis::Core::Hashable
|
4663
|
+
|
4664
|
+
# Output only. The state of the session at this point in history.
|
4665
|
+
# Corresponds to the JSON property `state`
|
4666
|
+
# @return [String]
|
4667
|
+
attr_accessor :state
|
4668
|
+
|
4669
|
+
# Output only. Details about the state at this point in history.
|
4670
|
+
# Corresponds to the JSON property `stateMessage`
|
4671
|
+
# @return [String]
|
4672
|
+
attr_accessor :state_message
|
4673
|
+
|
4674
|
+
# Output only. The time when the session entered the historical state.
|
4675
|
+
# Corresponds to the JSON property `stateStartTime`
|
4676
|
+
# @return [String]
|
4677
|
+
attr_accessor :state_start_time
|
4678
|
+
|
4679
|
+
def initialize(**args)
|
4680
|
+
update!(**args)
|
4681
|
+
end
|
4682
|
+
|
4683
|
+
# Update properties of this object
|
4684
|
+
def update!(**args)
|
4685
|
+
@state = args[:state] if args.key?(:state)
|
4686
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
4687
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
4688
|
+
end
|
4689
|
+
end
|
4690
|
+
|
4691
|
+
# A representation of a session template in the service. Next ID: 12
|
4692
|
+
class SessionTemplate
|
4693
|
+
include Google::Apis::Core::Hashable
|
4694
|
+
|
4695
|
+
# Output only. The time when the template was created.
|
4696
|
+
# Corresponds to the JSON property `createTime`
|
4697
|
+
# @return [String]
|
4698
|
+
attr_accessor :create_time
|
4699
|
+
|
4700
|
+
# Output only. The email address of the user who created the template.
|
4701
|
+
# Corresponds to the JSON property `creator`
|
4702
|
+
# @return [String]
|
4703
|
+
attr_accessor :creator
|
4704
|
+
|
4705
|
+
# Optional. Brief description of the template.
|
4706
|
+
# Corresponds to the JSON property `description`
|
4707
|
+
# @return [String]
|
4708
|
+
attr_accessor :description
|
4709
|
+
|
4710
|
+
# Environment configuration for a workload.
|
4711
|
+
# Corresponds to the JSON property `environmentConfig`
|
4712
|
+
# @return [Google::Apis::DataprocV1::EnvironmentConfig]
|
4713
|
+
attr_accessor :environment_config
|
4714
|
+
|
4715
|
+
# Jupyter configuration for an interactive session.
|
4716
|
+
# Corresponds to the JSON property `jupyterSession`
|
4717
|
+
# @return [Google::Apis::DataprocV1::JupyterConfig]
|
4718
|
+
attr_accessor :jupyter_session
|
4719
|
+
|
4720
|
+
# Optional. The labels to associate with sessions created using this template.
|
4721
|
+
# Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (
|
4722
|
+
# https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if
|
4723
|
+
# present, must contain 1 to 63 characters, and must conform to RFC 1035 (https:/
|
4724
|
+
# /www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with
|
4725
|
+
# a session.
|
4726
|
+
# Corresponds to the JSON property `labels`
|
4727
|
+
# @return [Hash<String,String>]
|
4728
|
+
attr_accessor :labels
|
4729
|
+
|
4730
|
+
# Required. The resource name of the session template.
|
4731
|
+
# Corresponds to the JSON property `name`
|
4732
|
+
# @return [String]
|
4733
|
+
attr_accessor :name
|
4734
|
+
|
4735
|
+
# Runtime configuration for a workload.
|
4736
|
+
# Corresponds to the JSON property `runtimeConfig`
|
4737
|
+
# @return [Google::Apis::DataprocV1::RuntimeConfig]
|
4738
|
+
attr_accessor :runtime_config
|
4739
|
+
|
4740
|
+
# Output only. The time template was last updated.
|
4741
|
+
# Corresponds to the JSON property `updateTime`
|
4742
|
+
# @return [String]
|
4743
|
+
attr_accessor :update_time
|
4744
|
+
|
4745
|
+
def initialize(**args)
|
4746
|
+
update!(**args)
|
4747
|
+
end
|
4748
|
+
|
4749
|
+
# Update properties of this object
|
4750
|
+
def update!(**args)
|
4751
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4752
|
+
@creator = args[:creator] if args.key?(:creator)
|
4753
|
+
@description = args[:description] if args.key?(:description)
|
4754
|
+
@environment_config = args[:environment_config] if args.key?(:environment_config)
|
4755
|
+
@jupyter_session = args[:jupyter_session] if args.key?(:jupyter_session)
|
4756
|
+
@labels = args[:labels] if args.key?(:labels)
|
4757
|
+
@name = args[:name] if args.key?(:name)
|
4758
|
+
@runtime_config = args[:runtime_config] if args.key?(:runtime_config)
|
4759
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
4760
|
+
end
|
4761
|
+
end
|
4762
|
+
|
4434
4763
|
# Request message for SetIamPolicy method.
|
4435
4764
|
class SetIamPolicyRequest
|
4436
4765
|
include Google::Apis::Core::Hashable
|
@@ -5186,6 +5515,31 @@ module Google
|
|
5186
5515
|
end
|
5187
5516
|
end
|
5188
5517
|
|
5518
|
+
# A request to terminate an interactive session.
|
5519
|
+
class TerminateSessionRequest
|
5520
|
+
include Google::Apis::Core::Hashable
|
5521
|
+
|
5522
|
+
# Optional. A unique ID used to identify the request. If the service receives
|
5523
|
+
# two TerminateSessionRequest (https://cloud.google.com/dataproc/docs/reference/
|
5524
|
+
# rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)
|
5525
|
+
# s with the same ID, the second request is ignored.Recommendation: Set this
|
5526
|
+
# value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
5527
|
+
# The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
|
5528
|
+
# and hyphens (-). The maximum length is 40 characters.
|
5529
|
+
# Corresponds to the JSON property `requestId`
|
5530
|
+
# @return [String]
|
5531
|
+
attr_accessor :request_id
|
5532
|
+
|
5533
|
+
def initialize(**args)
|
5534
|
+
update!(**args)
|
5535
|
+
end
|
5536
|
+
|
5537
|
+
# Update properties of this object
|
5538
|
+
def update!(**args)
|
5539
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
5540
|
+
end
|
5541
|
+
end
|
5542
|
+
|
5189
5543
|
# Request message for TestIamPermissions method.
|
5190
5544
|
class TestIamPermissionsRequest
|
5191
5545
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DataprocV1
|
18
18
|
# Version of the google-apis-dataproc_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.53.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 = "
|
25
|
+
REVISION = "20230814"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -292,6 +292,12 @@ module Google
|
|
292
292
|
include Google::Apis::Core::JsonObjectSupport
|
293
293
|
end
|
294
294
|
|
295
|
+
class InjectSessionCredentialsRequest
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
295
301
|
class InstanceGroupAutoscalingPolicyConfig
|
296
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
303
|
|
@@ -358,6 +364,12 @@ module Google
|
|
358
364
|
include Google::Apis::Core::JsonObjectSupport
|
359
365
|
end
|
360
366
|
|
367
|
+
class JupyterConfig
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
361
373
|
class KerberosConfig
|
362
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
375
|
|
@@ -412,6 +424,18 @@ module Google
|
|
412
424
|
include Google::Apis::Core::JsonObjectSupport
|
413
425
|
end
|
414
426
|
|
427
|
+
class ListSessionTemplatesResponse
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
433
|
+
class ListSessionsResponse
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
415
439
|
class ListWorkflowTemplatesResponse
|
416
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
441
|
|
@@ -586,12 +610,30 @@ module Google
|
|
586
610
|
include Google::Apis::Core::JsonObjectSupport
|
587
611
|
end
|
588
612
|
|
613
|
+
class Session
|
614
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
|
+
|
616
|
+
include Google::Apis::Core::JsonObjectSupport
|
617
|
+
end
|
618
|
+
|
589
619
|
class SessionOperationMetadata
|
590
620
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
591
621
|
|
592
622
|
include Google::Apis::Core::JsonObjectSupport
|
593
623
|
end
|
594
624
|
|
625
|
+
class SessionStateHistory
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
|
+
|
628
|
+
include Google::Apis::Core::JsonObjectSupport
|
629
|
+
end
|
630
|
+
|
631
|
+
class SessionTemplate
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
595
637
|
class SetIamPolicyRequest
|
596
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
639
|
|
@@ -694,6 +736,12 @@ module Google
|
|
694
736
|
include Google::Apis::Core::JsonObjectSupport
|
695
737
|
end
|
696
738
|
|
739
|
+
class TerminateSessionRequest
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
|
+
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
743
|
+
end
|
744
|
+
|
697
745
|
class TestIamPermissionsRequest
|
698
746
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
699
747
|
|
@@ -1290,6 +1338,14 @@ module Google
|
|
1290
1338
|
end
|
1291
1339
|
end
|
1292
1340
|
|
1341
|
+
class InjectSessionCredentialsRequest
|
1342
|
+
# @private
|
1343
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1344
|
+
property :credentials_ciphertext, as: 'credentialsCiphertext'
|
1345
|
+
property :request_id, as: 'requestId'
|
1346
|
+
end
|
1347
|
+
end
|
1348
|
+
|
1293
1349
|
class InstanceGroupAutoscalingPolicyConfig
|
1294
1350
|
# @private
|
1295
1351
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1439,6 +1495,14 @@ module Google
|
|
1439
1495
|
end
|
1440
1496
|
end
|
1441
1497
|
|
1498
|
+
class JupyterConfig
|
1499
|
+
# @private
|
1500
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1501
|
+
property :display_name, as: 'displayName'
|
1502
|
+
property :kernel, as: 'kernel'
|
1503
|
+
end
|
1504
|
+
end
|
1505
|
+
|
1442
1506
|
class KerberosConfig
|
1443
1507
|
# @private
|
1444
1508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1534,6 +1598,24 @@ module Google
|
|
1534
1598
|
end
|
1535
1599
|
end
|
1536
1600
|
|
1601
|
+
class ListSessionTemplatesResponse
|
1602
|
+
# @private
|
1603
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1604
|
+
property :next_page_token, as: 'nextPageToken'
|
1605
|
+
collection :session_templates, as: 'sessionTemplates', class: Google::Apis::DataprocV1::SessionTemplate, decorator: Google::Apis::DataprocV1::SessionTemplate::Representation
|
1606
|
+
|
1607
|
+
end
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
class ListSessionsResponse
|
1611
|
+
# @private
|
1612
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1613
|
+
property :next_page_token, as: 'nextPageToken'
|
1614
|
+
collection :sessions, as: 'sessions', class: Google::Apis::DataprocV1::Session, decorator: Google::Apis::DataprocV1::Session::Representation
|
1615
|
+
|
1616
|
+
end
|
1617
|
+
end
|
1618
|
+
|
1537
1619
|
class ListWorkflowTemplatesResponse
|
1538
1620
|
# @private
|
1539
1621
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1845,6 +1927,32 @@ module Google
|
|
1845
1927
|
end
|
1846
1928
|
end
|
1847
1929
|
|
1930
|
+
class Session
|
1931
|
+
# @private
|
1932
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1933
|
+
property :create_time, as: 'createTime'
|
1934
|
+
property :creator, as: 'creator'
|
1935
|
+
property :environment_config, as: 'environmentConfig', class: Google::Apis::DataprocV1::EnvironmentConfig, decorator: Google::Apis::DataprocV1::EnvironmentConfig::Representation
|
1936
|
+
|
1937
|
+
property :jupyter_session, as: 'jupyterSession', class: Google::Apis::DataprocV1::JupyterConfig, decorator: Google::Apis::DataprocV1::JupyterConfig::Representation
|
1938
|
+
|
1939
|
+
hash :labels, as: 'labels'
|
1940
|
+
property :name, as: 'name'
|
1941
|
+
property :runtime_config, as: 'runtimeConfig', class: Google::Apis::DataprocV1::RuntimeConfig, decorator: Google::Apis::DataprocV1::RuntimeConfig::Representation
|
1942
|
+
|
1943
|
+
property :runtime_info, as: 'runtimeInfo', class: Google::Apis::DataprocV1::RuntimeInfo, decorator: Google::Apis::DataprocV1::RuntimeInfo::Representation
|
1944
|
+
|
1945
|
+
property :session_template, as: 'sessionTemplate'
|
1946
|
+
property :state, as: 'state'
|
1947
|
+
collection :state_history, as: 'stateHistory', class: Google::Apis::DataprocV1::SessionStateHistory, decorator: Google::Apis::DataprocV1::SessionStateHistory::Representation
|
1948
|
+
|
1949
|
+
property :state_message, as: 'stateMessage'
|
1950
|
+
property :state_time, as: 'stateTime'
|
1951
|
+
property :user, as: 'user'
|
1952
|
+
property :uuid, as: 'uuid'
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
|
1848
1956
|
class SessionOperationMetadata
|
1849
1957
|
# @private
|
1850
1958
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1859,6 +1967,33 @@ module Google
|
|
1859
1967
|
end
|
1860
1968
|
end
|
1861
1969
|
|
1970
|
+
class SessionStateHistory
|
1971
|
+
# @private
|
1972
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1973
|
+
property :state, as: 'state'
|
1974
|
+
property :state_message, as: 'stateMessage'
|
1975
|
+
property :state_start_time, as: 'stateStartTime'
|
1976
|
+
end
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
class SessionTemplate
|
1980
|
+
# @private
|
1981
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1982
|
+
property :create_time, as: 'createTime'
|
1983
|
+
property :creator, as: 'creator'
|
1984
|
+
property :description, as: 'description'
|
1985
|
+
property :environment_config, as: 'environmentConfig', class: Google::Apis::DataprocV1::EnvironmentConfig, decorator: Google::Apis::DataprocV1::EnvironmentConfig::Representation
|
1986
|
+
|
1987
|
+
property :jupyter_session, as: 'jupyterSession', class: Google::Apis::DataprocV1::JupyterConfig, decorator: Google::Apis::DataprocV1::JupyterConfig::Representation
|
1988
|
+
|
1989
|
+
hash :labels, as: 'labels'
|
1990
|
+
property :name, as: 'name'
|
1991
|
+
property :runtime_config, as: 'runtimeConfig', class: Google::Apis::DataprocV1::RuntimeConfig, decorator: Google::Apis::DataprocV1::RuntimeConfig::Representation
|
1992
|
+
|
1993
|
+
property :update_time, as: 'updateTime'
|
1994
|
+
end
|
1995
|
+
end
|
1996
|
+
|
1862
1997
|
class SetIamPolicyRequest
|
1863
1998
|
# @private
|
1864
1999
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2030,6 +2165,13 @@ module Google
|
|
2030
2165
|
end
|
2031
2166
|
end
|
2032
2167
|
|
2168
|
+
class TerminateSessionRequest
|
2169
|
+
# @private
|
2170
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2171
|
+
property :request_id, as: 'requestId'
|
2172
|
+
end
|
2173
|
+
end
|
2174
|
+
|
2033
2175
|
class TestIamPermissionsRequest
|
2034
2176
|
# @private
|
2035
2177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -665,6 +665,409 @@ module Google
|
|
665
665
|
execute_or_queue_command(command, &block)
|
666
666
|
end
|
667
667
|
|
668
|
+
# Create an session template, synchronously.
|
669
|
+
# @param [String] parent
|
670
|
+
# Required. The parent resource where this session template will be created.
|
671
|
+
# @param [Google::Apis::DataprocV1::SessionTemplate] session_template_object
|
672
|
+
# @param [String] fields
|
673
|
+
# Selector specifying which fields to include in a partial response.
|
674
|
+
# @param [String] quota_user
|
675
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
676
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
677
|
+
# @param [Google::Apis::RequestOptions] options
|
678
|
+
# Request-specific options
|
679
|
+
#
|
680
|
+
# @yield [result, err] Result & error if block supplied
|
681
|
+
# @yieldparam result [Google::Apis::DataprocV1::SessionTemplate] parsed result object
|
682
|
+
# @yieldparam err [StandardError] error object if request failed
|
683
|
+
#
|
684
|
+
# @return [Google::Apis::DataprocV1::SessionTemplate]
|
685
|
+
#
|
686
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
687
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
688
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
689
|
+
def create_project_location_session_template(parent, session_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
690
|
+
command = make_simple_command(:post, 'v1/{+parent}/sessionTemplates', options)
|
691
|
+
command.request_representation = Google::Apis::DataprocV1::SessionTemplate::Representation
|
692
|
+
command.request_object = session_template_object
|
693
|
+
command.response_representation = Google::Apis::DataprocV1::SessionTemplate::Representation
|
694
|
+
command.response_class = Google::Apis::DataprocV1::SessionTemplate
|
695
|
+
command.params['parent'] = parent unless parent.nil?
|
696
|
+
command.query['fields'] = fields unless fields.nil?
|
697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
|
+
execute_or_queue_command(command, &block)
|
699
|
+
end
|
700
|
+
|
701
|
+
# Deletes a session template.
|
702
|
+
# @param [String] name
|
703
|
+
# Required. The name of the session template resource to delete.
|
704
|
+
# @param [String] fields
|
705
|
+
# Selector specifying which fields to include in a partial response.
|
706
|
+
# @param [String] quota_user
|
707
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
708
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
709
|
+
# @param [Google::Apis::RequestOptions] options
|
710
|
+
# Request-specific options
|
711
|
+
#
|
712
|
+
# @yield [result, err] Result & error if block supplied
|
713
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
714
|
+
# @yieldparam err [StandardError] error object if request failed
|
715
|
+
#
|
716
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
717
|
+
#
|
718
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
719
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
720
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
721
|
+
def delete_project_location_session_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
722
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
723
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
724
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
725
|
+
command.params['name'] = name unless name.nil?
|
726
|
+
command.query['fields'] = fields unless fields.nil?
|
727
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
728
|
+
execute_or_queue_command(command, &block)
|
729
|
+
end
|
730
|
+
|
731
|
+
# Gets the resource representation for a session template.
|
732
|
+
# @param [String] name
|
733
|
+
# Required. The name of the session template to retrieve.
|
734
|
+
# @param [String] fields
|
735
|
+
# Selector specifying which fields to include in a partial response.
|
736
|
+
# @param [String] quota_user
|
737
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
738
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
739
|
+
# @param [Google::Apis::RequestOptions] options
|
740
|
+
# Request-specific options
|
741
|
+
#
|
742
|
+
# @yield [result, err] Result & error if block supplied
|
743
|
+
# @yieldparam result [Google::Apis::DataprocV1::SessionTemplate] parsed result object
|
744
|
+
# @yieldparam err [StandardError] error object if request failed
|
745
|
+
#
|
746
|
+
# @return [Google::Apis::DataprocV1::SessionTemplate]
|
747
|
+
#
|
748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
751
|
+
def get_project_location_session_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
752
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
753
|
+
command.response_representation = Google::Apis::DataprocV1::SessionTemplate::Representation
|
754
|
+
command.response_class = Google::Apis::DataprocV1::SessionTemplate
|
755
|
+
command.params['name'] = name unless name.nil?
|
756
|
+
command.query['fields'] = fields unless fields.nil?
|
757
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
758
|
+
execute_or_queue_command(command, &block)
|
759
|
+
end
|
760
|
+
|
761
|
+
# Lists session templates.
|
762
|
+
# @param [String] parent
|
763
|
+
# Required. The parent, which owns this collection of session templates.
|
764
|
+
# @param [String] filter
|
765
|
+
# Optional. A filter for the session templates to return in the response.
|
766
|
+
# Filters are case sensitive and have the following syntax:field = value AND
|
767
|
+
# field = value ...
|
768
|
+
# @param [Fixnum] page_size
|
769
|
+
# Optional. The maximum number of sessions to return in each response. The
|
770
|
+
# service may return fewer than this value.
|
771
|
+
# @param [String] page_token
|
772
|
+
# Optional. A page token received from a previous ListSessions call. Provide
|
773
|
+
# this token to retrieve the subsequent page.
|
774
|
+
# @param [String] fields
|
775
|
+
# Selector specifying which fields to include in a partial response.
|
776
|
+
# @param [String] quota_user
|
777
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
778
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
779
|
+
# @param [Google::Apis::RequestOptions] options
|
780
|
+
# Request-specific options
|
781
|
+
#
|
782
|
+
# @yield [result, err] Result & error if block supplied
|
783
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListSessionTemplatesResponse] parsed result object
|
784
|
+
# @yieldparam err [StandardError] error object if request failed
|
785
|
+
#
|
786
|
+
# @return [Google::Apis::DataprocV1::ListSessionTemplatesResponse]
|
787
|
+
#
|
788
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
789
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
790
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
791
|
+
def list_project_location_session_templates(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
792
|
+
command = make_simple_command(:get, 'v1/{+parent}/sessionTemplates', options)
|
793
|
+
command.response_representation = Google::Apis::DataprocV1::ListSessionTemplatesResponse::Representation
|
794
|
+
command.response_class = Google::Apis::DataprocV1::ListSessionTemplatesResponse
|
795
|
+
command.params['parent'] = parent unless parent.nil?
|
796
|
+
command.query['filter'] = filter unless filter.nil?
|
797
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
798
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
799
|
+
command.query['fields'] = fields unless fields.nil?
|
800
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
801
|
+
execute_or_queue_command(command, &block)
|
802
|
+
end
|
803
|
+
|
804
|
+
# Updates the session template, synchronously.Disable check for update_mask,
|
805
|
+
# because all updates will be full replacements.
|
806
|
+
# @param [String] name
|
807
|
+
# Required. The resource name of the session template.
|
808
|
+
# @param [Google::Apis::DataprocV1::SessionTemplate] session_template_object
|
809
|
+
# @param [String] fields
|
810
|
+
# Selector specifying which fields to include in a partial response.
|
811
|
+
# @param [String] quota_user
|
812
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
813
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
814
|
+
# @param [Google::Apis::RequestOptions] options
|
815
|
+
# Request-specific options
|
816
|
+
#
|
817
|
+
# @yield [result, err] Result & error if block supplied
|
818
|
+
# @yieldparam result [Google::Apis::DataprocV1::SessionTemplate] parsed result object
|
819
|
+
# @yieldparam err [StandardError] error object if request failed
|
820
|
+
#
|
821
|
+
# @return [Google::Apis::DataprocV1::SessionTemplate]
|
822
|
+
#
|
823
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
824
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
825
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
826
|
+
def patch_project_location_session_template(name, session_template_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
827
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
828
|
+
command.request_representation = Google::Apis::DataprocV1::SessionTemplate::Representation
|
829
|
+
command.request_object = session_template_object
|
830
|
+
command.response_representation = Google::Apis::DataprocV1::SessionTemplate::Representation
|
831
|
+
command.response_class = Google::Apis::DataprocV1::SessionTemplate
|
832
|
+
command.params['name'] = name unless name.nil?
|
833
|
+
command.query['fields'] = fields unless fields.nil?
|
834
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
835
|
+
execute_or_queue_command(command, &block)
|
836
|
+
end
|
837
|
+
|
838
|
+
# Create an interactive session asynchronously.
|
839
|
+
# @param [String] parent
|
840
|
+
# Required. The parent resource where this session will be created.
|
841
|
+
# @param [Google::Apis::DataprocV1::Session] session_object
|
842
|
+
# @param [String] request_id
|
843
|
+
# Optional. A unique ID used to identify the request. If the service receives
|
844
|
+
# two CreateSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
845
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with
|
846
|
+
# the same ID, the second request is ignored and the first Session is created
|
847
|
+
# and stored in the backend is returned.Recommendation: Set this value to a UUID
|
848
|
+
# (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must
|
849
|
+
# contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
|
850
|
+
# ). The maximum length is 40 characters.
|
851
|
+
# @param [String] session_id
|
852
|
+
# Required. The ID to use for the session, which becomes the final component of
|
853
|
+
# the session's resource name.This value must be 4-63 characters. Valid
|
854
|
+
# characters are /a-z-/.
|
855
|
+
# @param [String] fields
|
856
|
+
# Selector specifying which fields to include in a partial response.
|
857
|
+
# @param [String] quota_user
|
858
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
859
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
860
|
+
# @param [Google::Apis::RequestOptions] options
|
861
|
+
# Request-specific options
|
862
|
+
#
|
863
|
+
# @yield [result, err] Result & error if block supplied
|
864
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
865
|
+
# @yieldparam err [StandardError] error object if request failed
|
866
|
+
#
|
867
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
868
|
+
#
|
869
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
870
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
871
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
872
|
+
def create_project_location_session(parent, session_object = nil, request_id: nil, session_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
873
|
+
command = make_simple_command(:post, 'v1/{+parent}/sessions', options)
|
874
|
+
command.request_representation = Google::Apis::DataprocV1::Session::Representation
|
875
|
+
command.request_object = session_object
|
876
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
877
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
878
|
+
command.params['parent'] = parent unless parent.nil?
|
879
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
880
|
+
command.query['sessionId'] = session_id unless session_id.nil?
|
881
|
+
command.query['fields'] = fields unless fields.nil?
|
882
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
883
|
+
execute_or_queue_command(command, &block)
|
884
|
+
end
|
885
|
+
|
886
|
+
# Deletes the interactive session resource. If the session is not in terminal
|
887
|
+
# state, it will be terminated and deleted afterwards.
|
888
|
+
# @param [String] name
|
889
|
+
# Required. The name of the session resource to delete.
|
890
|
+
# @param [String] request_id
|
891
|
+
# Optional. A unique ID used to identify the request. If the service receives
|
892
|
+
# two DeleteSessionRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
893
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with
|
894
|
+
# the same ID, the second request is ignored.Recommendation: Set this value to a
|
895
|
+
# UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value
|
896
|
+
# must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
|
897
|
+
# hyphens (-). The maximum length is 40 characters.
|
898
|
+
# @param [String] fields
|
899
|
+
# Selector specifying which fields to include in a partial response.
|
900
|
+
# @param [String] quota_user
|
901
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
902
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
903
|
+
# @param [Google::Apis::RequestOptions] options
|
904
|
+
# Request-specific options
|
905
|
+
#
|
906
|
+
# @yield [result, err] Result & error if block supplied
|
907
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
908
|
+
# @yieldparam err [StandardError] error object if request failed
|
909
|
+
#
|
910
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
911
|
+
#
|
912
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
913
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
914
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
915
|
+
def delete_project_location_session(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
916
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
917
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
918
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
919
|
+
command.params['name'] = name unless name.nil?
|
920
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
921
|
+
command.query['fields'] = fields unless fields.nil?
|
922
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
923
|
+
execute_or_queue_command(command, &block)
|
924
|
+
end
|
925
|
+
|
926
|
+
# Gets the resource representation for an interactive session.
|
927
|
+
# @param [String] name
|
928
|
+
# Required. The name of the session to retrieve.
|
929
|
+
# @param [String] fields
|
930
|
+
# Selector specifying which fields to include in a partial response.
|
931
|
+
# @param [String] quota_user
|
932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
934
|
+
# @param [Google::Apis::RequestOptions] options
|
935
|
+
# Request-specific options
|
936
|
+
#
|
937
|
+
# @yield [result, err] Result & error if block supplied
|
938
|
+
# @yieldparam result [Google::Apis::DataprocV1::Session] parsed result object
|
939
|
+
# @yieldparam err [StandardError] error object if request failed
|
940
|
+
#
|
941
|
+
# @return [Google::Apis::DataprocV1::Session]
|
942
|
+
#
|
943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
946
|
+
def get_project_location_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
947
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
948
|
+
command.response_representation = Google::Apis::DataprocV1::Session::Representation
|
949
|
+
command.response_class = Google::Apis::DataprocV1::Session
|
950
|
+
command.params['name'] = name unless name.nil?
|
951
|
+
command.query['fields'] = fields unless fields.nil?
|
952
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
953
|
+
execute_or_queue_command(command, &block)
|
954
|
+
end
|
955
|
+
|
956
|
+
# Inject Credentials in the interactive session.
|
957
|
+
# @param [String] session
|
958
|
+
# Required. The name of the session resource to inject credentials to.
|
959
|
+
# @param [Google::Apis::DataprocV1::InjectSessionCredentialsRequest] inject_session_credentials_request_object
|
960
|
+
# @param [String] fields
|
961
|
+
# Selector specifying which fields to include in a partial response.
|
962
|
+
# @param [String] quota_user
|
963
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
964
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
965
|
+
# @param [Google::Apis::RequestOptions] options
|
966
|
+
# Request-specific options
|
967
|
+
#
|
968
|
+
# @yield [result, err] Result & error if block supplied
|
969
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
970
|
+
# @yieldparam err [StandardError] error object if request failed
|
971
|
+
#
|
972
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
973
|
+
#
|
974
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
975
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
976
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
977
|
+
def inject_project_location_session_credentials(session, inject_session_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
978
|
+
command = make_simple_command(:post, 'v1/{+session}:injectCredentials', options)
|
979
|
+
command.request_representation = Google::Apis::DataprocV1::InjectSessionCredentialsRequest::Representation
|
980
|
+
command.request_object = inject_session_credentials_request_object
|
981
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
982
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
983
|
+
command.params['session'] = session unless session.nil?
|
984
|
+
command.query['fields'] = fields unless fields.nil?
|
985
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
986
|
+
execute_or_queue_command(command, &block)
|
987
|
+
end
|
988
|
+
|
989
|
+
# Lists interactive sessions.
|
990
|
+
# @param [String] parent
|
991
|
+
# Required. The parent, which owns this collection of sessions.
|
992
|
+
# @param [String] filter
|
993
|
+
# Optional. A filter for the sessions to return in the response.A filter is a
|
994
|
+
# logical expression constraining the values of various fields in each session
|
995
|
+
# resource. Filters are case sensitive, and may contain multiple clauses
|
996
|
+
# combined with logical operators (AND/OR). Supported fields are session_id,
|
997
|
+
# session_uuid, state, and create_time.e.g. state = ACTIVE and create_time < "
|
998
|
+
# 2023-01-01T00:00:00Z" filters for sessions in state ACTIVE that were created
|
999
|
+
# before 2023-01-01See https://google.aip.dev/assets/misc/ebnf-filtering.txt for
|
1000
|
+
# a detailed description of the filter syntax and a list of supported
|
1001
|
+
# comparisons.
|
1002
|
+
# @param [Fixnum] page_size
|
1003
|
+
# Optional. The maximum number of sessions to return in each response. The
|
1004
|
+
# service may return fewer than this value.
|
1005
|
+
# @param [String] page_token
|
1006
|
+
# Optional. A page token received from a previous ListSessions call. Provide
|
1007
|
+
# this token to retrieve the subsequent page.
|
1008
|
+
# @param [String] fields
|
1009
|
+
# Selector specifying which fields to include in a partial response.
|
1010
|
+
# @param [String] quota_user
|
1011
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1012
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1013
|
+
# @param [Google::Apis::RequestOptions] options
|
1014
|
+
# Request-specific options
|
1015
|
+
#
|
1016
|
+
# @yield [result, err] Result & error if block supplied
|
1017
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListSessionsResponse] parsed result object
|
1018
|
+
# @yieldparam err [StandardError] error object if request failed
|
1019
|
+
#
|
1020
|
+
# @return [Google::Apis::DataprocV1::ListSessionsResponse]
|
1021
|
+
#
|
1022
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1023
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1024
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1025
|
+
def list_project_location_sessions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1026
|
+
command = make_simple_command(:get, 'v1/{+parent}/sessions', options)
|
1027
|
+
command.response_representation = Google::Apis::DataprocV1::ListSessionsResponse::Representation
|
1028
|
+
command.response_class = Google::Apis::DataprocV1::ListSessionsResponse
|
1029
|
+
command.params['parent'] = parent unless parent.nil?
|
1030
|
+
command.query['filter'] = filter unless filter.nil?
|
1031
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1032
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1033
|
+
command.query['fields'] = fields unless fields.nil?
|
1034
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1035
|
+
execute_or_queue_command(command, &block)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Terminates the interactive session.
|
1039
|
+
# @param [String] name
|
1040
|
+
# Required. The name of the session resource to terminate.
|
1041
|
+
# @param [Google::Apis::DataprocV1::TerminateSessionRequest] terminate_session_request_object
|
1042
|
+
# @param [String] fields
|
1043
|
+
# Selector specifying which fields to include in a partial response.
|
1044
|
+
# @param [String] quota_user
|
1045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1047
|
+
# @param [Google::Apis::RequestOptions] options
|
1048
|
+
# Request-specific options
|
1049
|
+
#
|
1050
|
+
# @yield [result, err] Result & error if block supplied
|
1051
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
1052
|
+
# @yieldparam err [StandardError] error object if request failed
|
1053
|
+
#
|
1054
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
1055
|
+
#
|
1056
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1057
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1058
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1059
|
+
def terminate_session(name, terminate_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1060
|
+
command = make_simple_command(:post, 'v1/{+name}:terminate', options)
|
1061
|
+
command.request_representation = Google::Apis::DataprocV1::TerminateSessionRequest::Representation
|
1062
|
+
command.request_object = terminate_session_request_object
|
1063
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
1064
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
1065
|
+
command.params['name'] = name unless name.nil?
|
1066
|
+
command.query['fields'] = fields unless fields.nil?
|
1067
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1068
|
+
execute_or_queue_command(command, &block)
|
1069
|
+
end
|
1070
|
+
|
668
1071
|
# Creates new workflow template.
|
669
1072
|
# @param [String] parent
|
670
1073
|
# Required. The resource name of the region or location, as described in https://
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dataproc_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.53.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-08-
|
11
|
+
date: 2023-08-27 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-dataproc_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.53.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataproc_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.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Dataproc API V1
|