strongdm 4.7.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2308,6 +2308,82 @@ module SDM
2308
2308
  end
2309
2309
  end
2310
2310
 
2311
+ # AuroraPostgresIAM is currently unstable, and its API may change, or it may be removed, without a major version bump.
2312
+ class AuroraPostgresIAM
2313
+ # The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.
2314
+ attr_accessor :bind_interface
2315
+ # The initial database to connect to. This setting does not by itself prevent switching to another database after connecting.
2316
+ attr_accessor :database
2317
+ # A filter applied to the routing logic to pin datasource to nodes.
2318
+ attr_accessor :egress_filter
2319
+ # True if the datasource is reachable and the credentials are valid.
2320
+ attr_accessor :healthy
2321
+ # The host to dial to initiate a connection from the egress node to this resource.
2322
+ attr_accessor :hostname
2323
+ # Unique identifier of the Resource.
2324
+ attr_accessor :id
2325
+ # Unique human-readable name of the Resource.
2326
+ attr_accessor :name
2327
+ # If set, the database configured cannot be changed by users. This setting is not recommended for most use cases, as some clients will insist their database has changed when it has not, leading to user confusion.
2328
+ attr_accessor :override_database
2329
+ # The port to dial to initiate a connection from the egress node to this resource.
2330
+ attr_accessor :port
2331
+ # The local port used by clients to connect to this resource.
2332
+ attr_accessor :port_override
2333
+ # The AWS region to connect to.
2334
+ attr_accessor :region
2335
+ # ID of the secret store containing credentials for this resource, if any.
2336
+ attr_accessor :secret_store_id
2337
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
2338
+ attr_accessor :subdomain
2339
+ # Tags is a map of key, value pairs.
2340
+ attr_accessor :tags
2341
+ # The username to authenticate with.
2342
+ attr_accessor :username
2343
+
2344
+ def initialize(
2345
+ bind_interface: nil,
2346
+ database: nil,
2347
+ egress_filter: nil,
2348
+ healthy: nil,
2349
+ hostname: nil,
2350
+ id: nil,
2351
+ name: nil,
2352
+ override_database: nil,
2353
+ port: nil,
2354
+ port_override: nil,
2355
+ region: nil,
2356
+ secret_store_id: nil,
2357
+ subdomain: nil,
2358
+ tags: nil,
2359
+ username: nil
2360
+ )
2361
+ @bind_interface = bind_interface == nil ? "" : bind_interface
2362
+ @database = database == nil ? "" : database
2363
+ @egress_filter = egress_filter == nil ? "" : egress_filter
2364
+ @healthy = healthy == nil ? false : healthy
2365
+ @hostname = hostname == nil ? "" : hostname
2366
+ @id = id == nil ? "" : id
2367
+ @name = name == nil ? "" : name
2368
+ @override_database = override_database == nil ? false : override_database
2369
+ @port = port == nil ? 0 : port
2370
+ @port_override = port_override == nil ? 0 : port_override
2371
+ @region = region == nil ? "" : region
2372
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2373
+ @subdomain = subdomain == nil ? "" : subdomain
2374
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2375
+ @username = username == nil ? "" : username
2376
+ end
2377
+
2378
+ def to_json(options = {})
2379
+ hash = {}
2380
+ self.instance_variables.each do |var|
2381
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
2382
+ end
2383
+ hash.to_json
2384
+ end
2385
+ end
2386
+
2311
2387
  class Azure
2312
2388
  # The application ID to authenticate with.
2313
2389
  attr_accessor :app_id
@@ -7096,6 +7172,82 @@ module SDM
7096
7172
  end
7097
7173
  end
7098
7174
 
7175
+ # RDSPostgresIAM is currently unstable, and its API may change, or it may be removed, without a major version bump.
7176
+ class RDSPostgresIAM
7177
+ # The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.
7178
+ attr_accessor :bind_interface
7179
+ # The initial database to connect to. This setting does not by itself prevent switching to another database after connecting.
7180
+ attr_accessor :database
7181
+ # A filter applied to the routing logic to pin datasource to nodes.
7182
+ attr_accessor :egress_filter
7183
+ # True if the datasource is reachable and the credentials are valid.
7184
+ attr_accessor :healthy
7185
+ # The host to dial to initiate a connection from the egress node to this resource.
7186
+ attr_accessor :hostname
7187
+ # Unique identifier of the Resource.
7188
+ attr_accessor :id
7189
+ # Unique human-readable name of the Resource.
7190
+ attr_accessor :name
7191
+ # If set, the database configured cannot be changed by users. This setting is not recommended for most use cases, as some clients will insist their database has changed when it has not, leading to user confusion.
7192
+ attr_accessor :override_database
7193
+ # The port to dial to initiate a connection from the egress node to this resource.
7194
+ attr_accessor :port
7195
+ # The local port used by clients to connect to this resource.
7196
+ attr_accessor :port_override
7197
+ # The AWS region to connect to.
7198
+ attr_accessor :region
7199
+ # ID of the secret store containing credentials for this resource, if any.
7200
+ attr_accessor :secret_store_id
7201
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
7202
+ attr_accessor :subdomain
7203
+ # Tags is a map of key, value pairs.
7204
+ attr_accessor :tags
7205
+ # The username to authenticate with.
7206
+ attr_accessor :username
7207
+
7208
+ def initialize(
7209
+ bind_interface: nil,
7210
+ database: nil,
7211
+ egress_filter: nil,
7212
+ healthy: nil,
7213
+ hostname: nil,
7214
+ id: nil,
7215
+ name: nil,
7216
+ override_database: nil,
7217
+ port: nil,
7218
+ port_override: nil,
7219
+ region: nil,
7220
+ secret_store_id: nil,
7221
+ subdomain: nil,
7222
+ tags: nil,
7223
+ username: nil
7224
+ )
7225
+ @bind_interface = bind_interface == nil ? "" : bind_interface
7226
+ @database = database == nil ? "" : database
7227
+ @egress_filter = egress_filter == nil ? "" : egress_filter
7228
+ @healthy = healthy == nil ? false : healthy
7229
+ @hostname = hostname == nil ? "" : hostname
7230
+ @id = id == nil ? "" : id
7231
+ @name = name == nil ? "" : name
7232
+ @override_database = override_database == nil ? false : override_database
7233
+ @port = port == nil ? 0 : port
7234
+ @port_override = port_override == nil ? 0 : port_override
7235
+ @region = region == nil ? "" : region
7236
+ @secret_store_id = secret_store_id == nil ? "" : secret_store_id
7237
+ @subdomain = subdomain == nil ? "" : subdomain
7238
+ @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
7239
+ @username = username == nil ? "" : username
7240
+ end
7241
+
7242
+ def to_json(options = {})
7243
+ hash = {}
7244
+ self.instance_variables.each do |var|
7245
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
7246
+ end
7247
+ hash.to_json
7248
+ end
7249
+ end
7250
+
7099
7251
  class RabbitMQAMQP091
7100
7252
  # The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.
7101
7253
  attr_accessor :bind_interface
@@ -9564,7 +9716,9 @@ module SDM
9564
9716
  attr_accessor :description
9565
9717
  # Optional enabled state for workflow. This setting may be overridden by the system if
9566
9718
  # the workflow doesn't meet the requirements to be enabled or if other conditions prevent
9567
- # enabling the workflow.
9719
+ # enabling the workflow. The requirements to enable a workflow are that the workflow must be
9720
+ # either set up for with auto grant enabled or have one or more WorkflowApprovers created for
9721
+ # the workflow.
9568
9722
  attr_accessor :enabled
9569
9723
  # Unique identifier of the Workflow.
9570
9724
  attr_accessor :id
@@ -9604,14 +9758,18 @@ module SDM
9604
9758
  class WorkflowApprover
9605
9759
  # The approver id.
9606
9760
  attr_accessor :approver_id
9761
+ # Unique identifier of the WorkflowApprover.
9762
+ attr_accessor :id
9607
9763
  # The workflow id.
9608
9764
  attr_accessor :workflow_id
9609
9765
 
9610
9766
  def initialize(
9611
9767
  approver_id: nil,
9768
+ id: nil,
9612
9769
  workflow_id: nil
9613
9770
  )
9614
9771
  @approver_id = approver_id == nil ? "" : approver_id
9772
+ @id = id == nil ? "" : id
9615
9773
  @workflow_id = workflow_id == nil ? "" : workflow_id
9616
9774
  end
9617
9775
 
@@ -9624,16 +9782,42 @@ module SDM
9624
9782
  end
9625
9783
  end
9626
9784
 
9627
- # WorkflowApproverHistory records the state of a WorkflowApprover at a given point in time,
9628
- # where every change (create, update and delete) to a WorkflowApprover produces an
9629
- # WorkflowApproverHistory record.
9785
+ # WorkflowApproverGetResponse returns a requested WorkflowApprover.
9786
+ class WorkflowApproverGetResponse
9787
+ # Reserved for future use.
9788
+ attr_accessor :meta
9789
+ # Rate limit information.
9790
+ attr_accessor :rate_limit
9791
+ # The requested WorkflowApprover.
9792
+ attr_accessor :workflow_approver
9793
+
9794
+ def initialize(
9795
+ meta: nil,
9796
+ rate_limit: nil,
9797
+ workflow_approver: nil
9798
+ )
9799
+ @meta = meta == nil ? nil : meta
9800
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9801
+ @workflow_approver = workflow_approver == nil ? nil : workflow_approver
9802
+ end
9803
+
9804
+ def to_json(options = {})
9805
+ hash = {}
9806
+ self.instance_variables.each do |var|
9807
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9808
+ end
9809
+ hash.to_json
9810
+ end
9811
+ end
9812
+
9813
+ # WorkflowApproverHistory provides records of all changes to the state of a WorkflowApprover.
9630
9814
  class WorkflowApproverHistory
9631
- # The unique identifier of the Activity that produced this change to the Workflow.
9815
+ # The unique identifier of the Activity that produced this change to the WorkflowApprover.
9632
9816
  # May be empty for some system-initiated updates.
9633
9817
  attr_accessor :activity_id
9634
- # If this Workflow was deleted, the time it was deleted.
9818
+ # If this WorkflowApprover was deleted, the time it was deleted.
9635
9819
  attr_accessor :deleted_at
9636
- # The time at which the Workflow state was recorded.
9820
+ # The time at which the WorkflowApprover state was recorded.
9637
9821
  attr_accessor :timestamp
9638
9822
  # The complete WorkflowApprover state at this time.
9639
9823
  attr_accessor :workflow_approver
@@ -9659,19 +9843,16 @@ module SDM
9659
9843
  end
9660
9844
  end
9661
9845
 
9662
- # WorkflowAssignment links a Resource to a Workflow.
9663
- class WorkflowAssignment
9664
- # The resource id.
9665
- attr_accessor :resource_id
9666
- # The workflow id.
9667
- attr_accessor :workflow_id
9846
+ # WorkflowApproversCreateRequest specifies the workflowID and approverID of a new
9847
+ # workflow approver to be created.
9848
+ class WorkflowApproversCreateRequest
9849
+ # Parameters to define the new WorkflowApprover.
9850
+ attr_accessor :workflow_approver
9668
9851
 
9669
9852
  def initialize(
9670
- resource_id: nil,
9671
- workflow_id: nil
9853
+ workflow_approver: nil
9672
9854
  )
9673
- @resource_id = resource_id == nil ? "" : resource_id
9674
- @workflow_id = workflow_id == nil ? "" : workflow_id
9855
+ @workflow_approver = workflow_approver == nil ? nil : workflow_approver
9675
9856
  end
9676
9857
 
9677
9858
  def to_json(options = {})
@@ -9683,30 +9864,19 @@ module SDM
9683
9864
  end
9684
9865
  end
9685
9866
 
9686
- # WorkflowAssignmentHistory records the state of a WorkflowAssignment at a given point in time,
9687
- # where every change (create, update and delete) to a WorkflowAssignment produces an
9688
- # WorkflowAssignmentHistory record.
9689
- class WorkflowAssignmentHistory
9690
- # The unique identifier of the Activity that produced this change to the Workflow.
9691
- # May be empty for some system-initiated updates.
9692
- attr_accessor :activity_id
9693
- # If this Workflow was deleted, the time it was deleted.
9694
- attr_accessor :deleted_at
9695
- # The time at which the Workflow state was recorded.
9696
- attr_accessor :timestamp
9697
- # The complete WorkflowAssignment state at this time.
9698
- attr_accessor :workflow_assignment
9867
+ # WorkflowApproversCreateResponse reports how the WorkflowApprover was created in the system.
9868
+ class WorkflowApproversCreateResponse
9869
+ # Rate limit information.
9870
+ attr_accessor :rate_limit
9871
+ # The created workflow approver.
9872
+ attr_accessor :workflow_approver
9699
9873
 
9700
9874
  def initialize(
9701
- activity_id: nil,
9702
- deleted_at: nil,
9703
- timestamp: nil,
9704
- workflow_assignment: nil
9875
+ rate_limit: nil,
9876
+ workflow_approver: nil
9705
9877
  )
9706
- @activity_id = activity_id == nil ? "" : activity_id
9707
- @deleted_at = deleted_at == nil ? nil : deleted_at
9708
- @timestamp = timestamp == nil ? nil : timestamp
9709
- @workflow_assignment = workflow_assignment == nil ? nil : workflow_assignment
9878
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9879
+ @workflow_approver = workflow_approver == nil ? nil : workflow_approver
9710
9880
  end
9711
9881
 
9712
9882
  def to_json(options = {})
@@ -9718,30 +9888,15 @@ module SDM
9718
9888
  end
9719
9889
  end
9720
9890
 
9721
- # WorkflowHistory records the state of a Workflow at a given point in time,
9722
- # where every change (create, update and delete) to a Workflow produces an
9723
- # WorkflowHistory record.
9724
- class WorkflowHistory
9725
- # The unique identifier of the Activity that produced this change to the Workflow.
9726
- # May be empty for some system-initiated updates.
9727
- attr_accessor :activity_id
9728
- # If this Workflow was deleted, the time it was deleted.
9729
- attr_accessor :deleted_at
9730
- # The time at which the Workflow state was recorded.
9731
- attr_accessor :timestamp
9732
- # The complete Workflow state at this time.
9733
- attr_accessor :workflow
9891
+ # WorkflowApproversDeleteRequest specifies the ID of a WorkflowApprover to be deleted.
9892
+ class WorkflowApproversDeleteRequest
9893
+ # The unique identifier of the WorkflowApprover to delete.
9894
+ attr_accessor :id
9734
9895
 
9735
9896
  def initialize(
9736
- activity_id: nil,
9737
- deleted_at: nil,
9738
- timestamp: nil,
9739
- workflow: nil
9897
+ id: nil
9740
9898
  )
9741
- @activity_id = activity_id == nil ? "" : activity_id
9742
- @deleted_at = deleted_at == nil ? nil : deleted_at
9743
- @timestamp = timestamp == nil ? nil : timestamp
9744
- @workflow = workflow == nil ? nil : workflow
9899
+ @id = id == nil ? "" : id
9745
9900
  end
9746
9901
 
9747
9902
  def to_json(options = {})
@@ -9753,16 +9908,15 @@ module SDM
9753
9908
  end
9754
9909
  end
9755
9910
 
9756
- # WorkflowListRequest specifies criteria for retrieving a list of
9757
- # Workflow records
9758
- class WorkflowListRequest
9759
- # A human-readable filter query string.
9760
- attr_accessor :filter
9911
+ # WorkflowApproversDeleteResponse reports how the WorkflowApprover was deleted in the system.
9912
+ class WorkflowApproversDeleteResponse
9913
+ # Rate limit information.
9914
+ attr_accessor :rate_limit
9761
9915
 
9762
9916
  def initialize(
9763
- filter: nil
9917
+ rate_limit: nil
9764
9918
  )
9765
- @filter = filter == nil ? "" : filter
9919
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9766
9920
  end
9767
9921
 
9768
9922
  def to_json(options = {})
@@ -9774,16 +9928,16 @@ module SDM
9774
9928
  end
9775
9929
  end
9776
9930
 
9777
- # WorkflowListResponse returns a list of Workflow records that meet
9778
- # the criteria of a WorkflowListRequest.
9779
- class WorkflowListResponse
9780
- # Rate limit information.
9781
- attr_accessor :rate_limit
9931
+ # WorkflowApproversListRequest specifies criteria for retrieving a list of
9932
+ # WorkflowApprover records
9933
+ class WorkflowApproversListRequest
9934
+ # A human-readable filter query string.
9935
+ attr_accessor :filter
9782
9936
 
9783
9937
  def initialize(
9784
- rate_limit: nil
9938
+ filter: nil
9785
9939
  )
9786
- @rate_limit = rate_limit == nil ? nil : rate_limit
9940
+ @filter = filter == nil ? "" : filter
9787
9941
  end
9788
9942
 
9789
9943
  def to_json(options = {})
@@ -9795,17 +9949,273 @@ module SDM
9795
9949
  end
9796
9950
  end
9797
9951
 
9798
- # WorkflowRole links a Role to a Workflow.
9799
- class WorkflowRole
9952
+ # WorkflowApproversListResponse returns a list of WorkflowApprover records that meet
9953
+ # the criteria of a WorkflowApproversListRequest.
9954
+ class WorkflowApproversListResponse
9955
+ # Rate limit information.
9956
+ attr_accessor :rate_limit
9957
+
9958
+ def initialize(
9959
+ rate_limit: nil
9960
+ )
9961
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9962
+ end
9963
+
9964
+ def to_json(options = {})
9965
+ hash = {}
9966
+ self.instance_variables.each do |var|
9967
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9968
+ end
9969
+ hash.to_json
9970
+ end
9971
+ end
9972
+
9973
+ # WorkflowAssignment links a Resource to a Workflow. The assigned resources are those that a user can request
9974
+ # access to via the workflow.
9975
+ class WorkflowAssignment
9976
+ # The resource id.
9977
+ attr_accessor :resource_id
9978
+ # The workflow id.
9979
+ attr_accessor :workflow_id
9980
+
9981
+ def initialize(
9982
+ resource_id: nil,
9983
+ workflow_id: nil
9984
+ )
9985
+ @resource_id = resource_id == nil ? "" : resource_id
9986
+ @workflow_id = workflow_id == nil ? "" : workflow_id
9987
+ end
9988
+
9989
+ def to_json(options = {})
9990
+ hash = {}
9991
+ self.instance_variables.each do |var|
9992
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9993
+ end
9994
+ hash.to_json
9995
+ end
9996
+ end
9997
+
9998
+ # WorkflowAssignmentsHistory provides records of all changes to the state of a WorkflowAssignment.
9999
+ class WorkflowAssignmentHistory
10000
+ # The unique identifier of the Activity that produced this change to the WorkflowAssignment.
10001
+ # May be empty for some system-initiated updates.
10002
+ attr_accessor :activity_id
10003
+ # If this WorkflowAssignment was deleted, the time it was deleted.
10004
+ attr_accessor :deleted_at
10005
+ # The time at which the WorkflowAssignment state was recorded.
10006
+ attr_accessor :timestamp
10007
+ # The complete WorkflowAssignment state at this time.
10008
+ attr_accessor :workflow_assignment
10009
+
10010
+ def initialize(
10011
+ activity_id: nil,
10012
+ deleted_at: nil,
10013
+ timestamp: nil,
10014
+ workflow_assignment: nil
10015
+ )
10016
+ @activity_id = activity_id == nil ? "" : activity_id
10017
+ @deleted_at = deleted_at == nil ? nil : deleted_at
10018
+ @timestamp = timestamp == nil ? nil : timestamp
10019
+ @workflow_assignment = workflow_assignment == nil ? nil : workflow_assignment
10020
+ end
10021
+
10022
+ def to_json(options = {})
10023
+ hash = {}
10024
+ self.instance_variables.each do |var|
10025
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10026
+ end
10027
+ hash.to_json
10028
+ end
10029
+ end
10030
+
10031
+ # WorkflowAssignmentsListRequest specifies criteria for retrieving a list of
10032
+ # WorkflowAssignment records
10033
+ class WorkflowAssignmentsListRequest
10034
+ # A human-readable filter query string.
10035
+ attr_accessor :filter
10036
+
10037
+ def initialize(
10038
+ filter: nil
10039
+ )
10040
+ @filter = filter == nil ? "" : filter
10041
+ end
10042
+
10043
+ def to_json(options = {})
10044
+ hash = {}
10045
+ self.instance_variables.each do |var|
10046
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10047
+ end
10048
+ hash.to_json
10049
+ end
10050
+ end
10051
+
10052
+ # WorkflowAssignmentsListResponse returns a list of WorkflowAssignment records that meet
10053
+ # the criteria of a WorkflowAssignmentsListRequest.
10054
+ class WorkflowAssignmentsListResponse
10055
+ # Rate limit information.
10056
+ attr_accessor :rate_limit
10057
+
10058
+ def initialize(
10059
+ rate_limit: nil
10060
+ )
10061
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10062
+ end
10063
+
10064
+ def to_json(options = {})
10065
+ hash = {}
10066
+ self.instance_variables.each do |var|
10067
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10068
+ end
10069
+ hash.to_json
10070
+ end
10071
+ end
10072
+
10073
+ # WorkflowCreateResponse reports how the Workflow was created in the system.
10074
+ class WorkflowCreateResponse
10075
+ # Rate limit information.
10076
+ attr_accessor :rate_limit
10077
+ # The created workflow.
10078
+ attr_accessor :workflow
10079
+
10080
+ def initialize(
10081
+ rate_limit: nil,
10082
+ workflow: nil
10083
+ )
10084
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10085
+ @workflow = workflow == nil ? nil : workflow
10086
+ end
10087
+
10088
+ def to_json(options = {})
10089
+ hash = {}
10090
+ self.instance_variables.each do |var|
10091
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10092
+ end
10093
+ hash.to_json
10094
+ end
10095
+ end
10096
+
10097
+ # WorkflowDeleteResponse returns information about a Workflow that was deleted.
10098
+ class WorkflowDeleteResponse
10099
+ # The deleted workflow id.
10100
+ attr_accessor :id
10101
+ # Rate limit information.
10102
+ attr_accessor :rate_limit
10103
+
10104
+ def initialize(
10105
+ id: nil,
10106
+ rate_limit: nil
10107
+ )
10108
+ @id = id == nil ? "" : id
10109
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10110
+ end
10111
+
10112
+ def to_json(options = {})
10113
+ hash = {}
10114
+ self.instance_variables.each do |var|
10115
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10116
+ end
10117
+ hash.to_json
10118
+ end
10119
+ end
10120
+
10121
+ # WorkflowGetResponse returns a requested Workflow.
10122
+ class WorkflowGetResponse
10123
+ # Reserved for future use.
10124
+ attr_accessor :meta
10125
+ # Rate limit information.
10126
+ attr_accessor :rate_limit
10127
+ # The requested Workflow.
10128
+ attr_accessor :workflow
10129
+
10130
+ def initialize(
10131
+ meta: nil,
10132
+ rate_limit: nil,
10133
+ workflow: nil
10134
+ )
10135
+ @meta = meta == nil ? nil : meta
10136
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10137
+ @workflow = workflow == nil ? nil : workflow
10138
+ end
10139
+
10140
+ def to_json(options = {})
10141
+ hash = {}
10142
+ self.instance_variables.each do |var|
10143
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10144
+ end
10145
+ hash.to_json
10146
+ end
10147
+ end
10148
+
10149
+ # WorkflowsHistory provides records of all changes to the state of a Workflow.
10150
+ class WorkflowHistory
10151
+ # The unique identifier of the Activity that produced this change to the Workflow.
10152
+ # May be empty for some system-initiated updates.
10153
+ attr_accessor :activity_id
10154
+ # If this Workflow was deleted, the time it was deleted.
10155
+ attr_accessor :deleted_at
10156
+ # The time at which the Workflow state was recorded.
10157
+ attr_accessor :timestamp
10158
+ # The complete Workflow state at this time.
10159
+ attr_accessor :workflow
10160
+
10161
+ def initialize(
10162
+ activity_id: nil,
10163
+ deleted_at: nil,
10164
+ timestamp: nil,
10165
+ workflow: nil
10166
+ )
10167
+ @activity_id = activity_id == nil ? "" : activity_id
10168
+ @deleted_at = deleted_at == nil ? nil : deleted_at
10169
+ @timestamp = timestamp == nil ? nil : timestamp
10170
+ @workflow = workflow == nil ? nil : workflow
10171
+ end
10172
+
10173
+ def to_json(options = {})
10174
+ hash = {}
10175
+ self.instance_variables.each do |var|
10176
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10177
+ end
10178
+ hash.to_json
10179
+ end
10180
+ end
10181
+
10182
+ # WorkflowListResponse returns a list of Workflow records that meet
10183
+ # the criteria of a WorkflowListRequest.
10184
+ class WorkflowListResponse
10185
+ # Rate limit information.
10186
+ attr_accessor :rate_limit
10187
+
10188
+ def initialize(
10189
+ rate_limit: nil
10190
+ )
10191
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10192
+ end
10193
+
10194
+ def to_json(options = {})
10195
+ hash = {}
10196
+ self.instance_variables.each do |var|
10197
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10198
+ end
10199
+ hash.to_json
10200
+ end
10201
+ end
10202
+
10203
+ # WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
10204
+ # to request access to a resource via the workflow.
10205
+ class WorkflowRole
10206
+ # Unique identifier of the WorkflowRole.
10207
+ attr_accessor :id
9800
10208
  # The role id.
9801
10209
  attr_accessor :role_id
9802
10210
  # The workflow id.
9803
10211
  attr_accessor :workflow_id
9804
10212
 
9805
10213
  def initialize(
10214
+ id: nil,
9806
10215
  role_id: nil,
9807
10216
  workflow_id: nil
9808
10217
  )
10218
+ @id = id == nil ? "" : id
9809
10219
  @role_id = role_id == nil ? "" : role_id
9810
10220
  @workflow_id = workflow_id == nil ? "" : workflow_id
9811
10221
  end
@@ -9819,16 +10229,42 @@ module SDM
9819
10229
  end
9820
10230
  end
9821
10231
 
9822
- # WorkflowRolesHistory records the state of a Workflow at a given point in time,
9823
- # where every change (create, update and delete) to a WorkflowRole produces a
9824
- # WorkflowRoleHistory record.
10232
+ # WorkflowRoleGetResponse returns a requested WorkflowRole.
10233
+ class WorkflowRoleGetResponse
10234
+ # Reserved for future use.
10235
+ attr_accessor :meta
10236
+ # Rate limit information.
10237
+ attr_accessor :rate_limit
10238
+ # The requested WorkflowRole.
10239
+ attr_accessor :workflow_role
10240
+
10241
+ def initialize(
10242
+ meta: nil,
10243
+ rate_limit: nil,
10244
+ workflow_role: nil
10245
+ )
10246
+ @meta = meta == nil ? nil : meta
10247
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10248
+ @workflow_role = workflow_role == nil ? nil : workflow_role
10249
+ end
10250
+
10251
+ def to_json(options = {})
10252
+ hash = {}
10253
+ self.instance_variables.each do |var|
10254
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10255
+ end
10256
+ hash.to_json
10257
+ end
10258
+ end
10259
+
10260
+ # WorkflowRolesHistory provides records of all changes to the state of a WorkflowRole
9825
10261
  class WorkflowRoleHistory
9826
- # The unique identifier of the Activity that produced this change to the Workflow.
10262
+ # The unique identifier of the Activity that produced this change to the WorkflowRole.
9827
10263
  # May be empty for some system-initiated updates.
9828
10264
  attr_accessor :activity_id
9829
10265
  # If this WorkflowRole was deleted, the time it was deleted.
9830
10266
  attr_accessor :deleted_at
9831
- # The time at which the Workflow state was recorded.
10267
+ # The time at which the WorkflowRole state was recorded.
9832
10268
  attr_accessor :timestamp
9833
10269
  # The complete WorkflowRole state at this time.
9834
10270
  attr_accessor :workflow_role
@@ -9854,6 +10290,158 @@ module SDM
9854
10290
  end
9855
10291
  end
9856
10292
 
10293
+ # WorkflowRolesCreateRequest specifies the workflowID and roleID of a new
10294
+ # workflow role to be created.
10295
+ class WorkflowRolesCreateRequest
10296
+ # Parameters to define the new WorkflowRole.
10297
+ attr_accessor :workflow_role
10298
+
10299
+ def initialize(
10300
+ workflow_role: nil
10301
+ )
10302
+ @workflow_role = workflow_role == nil ? nil : workflow_role
10303
+ end
10304
+
10305
+ def to_json(options = {})
10306
+ hash = {}
10307
+ self.instance_variables.each do |var|
10308
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10309
+ end
10310
+ hash.to_json
10311
+ end
10312
+ end
10313
+
10314
+ # WorkflowRolesCreateResponse reports how the WorkflowRole was created in the system.
10315
+ class WorkflowRolesCreateResponse
10316
+ # Rate limit information.
10317
+ attr_accessor :rate_limit
10318
+ # The created workflow role.
10319
+ attr_accessor :workflow_role
10320
+
10321
+ def initialize(
10322
+ rate_limit: nil,
10323
+ workflow_role: nil
10324
+ )
10325
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10326
+ @workflow_role = workflow_role == nil ? nil : workflow_role
10327
+ end
10328
+
10329
+ def to_json(options = {})
10330
+ hash = {}
10331
+ self.instance_variables.each do |var|
10332
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10333
+ end
10334
+ hash.to_json
10335
+ end
10336
+ end
10337
+
10338
+ # WorkflowRolesDeleteRequest specifies the ID of a WorkflowRole to be deleted.
10339
+ class WorkflowRolesDeleteRequest
10340
+ # The unique identifier of the WorkflowRole to delete.
10341
+ attr_accessor :id
10342
+
10343
+ def initialize(
10344
+ id: nil
10345
+ )
10346
+ @id = id == nil ? "" : id
10347
+ end
10348
+
10349
+ def to_json(options = {})
10350
+ hash = {}
10351
+ self.instance_variables.each do |var|
10352
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10353
+ end
10354
+ hash.to_json
10355
+ end
10356
+ end
10357
+
10358
+ # WorkflowRolesDeleteResponse reports how the WorkflowRole was deleted in the system.
10359
+ class WorkflowRolesDeleteResponse
10360
+ # Rate limit information.
10361
+ attr_accessor :rate_limit
10362
+
10363
+ def initialize(
10364
+ rate_limit: nil
10365
+ )
10366
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10367
+ end
10368
+
10369
+ def to_json(options = {})
10370
+ hash = {}
10371
+ self.instance_variables.each do |var|
10372
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10373
+ end
10374
+ hash.to_json
10375
+ end
10376
+ end
10377
+
10378
+ # WorkflowRolesListRequest specifies criteria for retrieving a list of
10379
+ # WorkflowRole records
10380
+ class WorkflowRolesListRequest
10381
+ # A human-readable filter query string.
10382
+ attr_accessor :filter
10383
+
10384
+ def initialize(
10385
+ filter: nil
10386
+ )
10387
+ @filter = filter == nil ? "" : filter
10388
+ end
10389
+
10390
+ def to_json(options = {})
10391
+ hash = {}
10392
+ self.instance_variables.each do |var|
10393
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10394
+ end
10395
+ hash.to_json
10396
+ end
10397
+ end
10398
+
10399
+ # WorkflowRolesListResponse returns a list of WorkflowRole records that meet
10400
+ # the criteria of a WorkflowRolesListRequest.
10401
+ class WorkflowRolesListResponse
10402
+ # Rate limit information.
10403
+ attr_accessor :rate_limit
10404
+
10405
+ def initialize(
10406
+ rate_limit: nil
10407
+ )
10408
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10409
+ end
10410
+
10411
+ def to_json(options = {})
10412
+ hash = {}
10413
+ self.instance_variables.each do |var|
10414
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10415
+ end
10416
+ hash.to_json
10417
+ end
10418
+ end
10419
+
10420
+ # WorkflowUpdateResponse returns the fields of a Workflow after it has been updated by
10421
+ # a WorkflowUpdateRequest.
10422
+ class WorkflowUpdateResponse
10423
+ # Rate limit information.
10424
+ attr_accessor :rate_limit
10425
+ # The updated workflow.
10426
+ attr_accessor :workflow
10427
+
10428
+ def initialize(
10429
+ rate_limit: nil,
10430
+ workflow: nil
10431
+ )
10432
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10433
+ @workflow = workflow == nil ? nil : workflow
10434
+ end
10435
+
10436
+ def to_json(options = {})
10437
+ hash = {}
10438
+ self.instance_variables.each do |var|
10439
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10440
+ end
10441
+ hash.to_json
10442
+ end
10443
+ end
10444
+
9857
10445
  # @private
9858
10446
  def self._porcelain_zero_value_tags()
9859
10447
  {}