google-cloud-secure_source_manager-v1 1.0.1 → 1.1.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.
@@ -101,6 +101,11 @@ module Google
101
101
  # @return [::String]
102
102
  # Output only. Service Attachment for SSH, resource is in the format of
103
103
  # `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
104
+ # @!attribute [rw] psc_allowed_projects
105
+ # @return [::Array<::String>]
106
+ # Optional. Additional allowed projects for setting up PSC connections.
107
+ # Instance host project is automatically allowed and does not need to be
108
+ # included in this list.
104
109
  class PrivateConfig
105
110
  include ::Google::Protobuf::MessageExts
106
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -165,8 +170,10 @@ module Google
165
170
  # Optional. The name of the instance in which the repository is hosted,
166
171
  # formatted as
167
172
  # `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
168
- # For data plane CreateRepository requests, this field is output only.
169
- # For control plane CreateRepository requests, this field is used as input.
173
+ # When creating repository via
174
+ # securesourcemanager.googleapis.com (Control Plane API), this field is used
175
+ # as input. When creating repository via *.sourcemanager.dev (Data Plane
176
+ # API), this field is output only.
170
177
  # @!attribute [r] uid
171
178
  # @return [::String]
172
179
  # Output only. Unique identifier of the repository.
@@ -350,6 +357,90 @@ module Google
350
357
  end
351
358
  end
352
359
 
360
+ # Metadata of a BranchRule. BranchRule is the protection rule to enforce
361
+ # pre-defined rules on desginated branches within a repository.
362
+ # @!attribute [rw] name
363
+ # @return [::String]
364
+ # Optional. A unique identifier for a BranchRule. The name should be of the
365
+ # format:
366
+ # `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
367
+ # @!attribute [r] uid
368
+ # @return [::String]
369
+ # Output only. Unique identifier of the repository.
370
+ # @!attribute [r] create_time
371
+ # @return [::Google::Protobuf::Timestamp]
372
+ # Output only. Create timestamp.
373
+ # @!attribute [r] update_time
374
+ # @return [::Google::Protobuf::Timestamp]
375
+ # Output only. Update timestamp.
376
+ # @!attribute [rw] annotations
377
+ # @return [::Google::Protobuf::Map{::String => ::String}]
378
+ # Optional. User annotations. These attributes can only be set and used by
379
+ # the user. See https://google.aip.dev/128#annotations for more details such
380
+ # as format and size limitations.
381
+ # @!attribute [rw] etag
382
+ # @return [::String]
383
+ # Optional. This checksum is computed by the server based on the value of
384
+ # other fields, and may be sent on update and delete requests to ensure the
385
+ # client has an up-to-date value before proceeding.
386
+ # @!attribute [rw] include_pattern
387
+ # @return [::String]
388
+ # Optional. The pattern of the branch that can match to this BranchRule.
389
+ # Specified as regex.
390
+ # .* for all branches. Examples: main, (main|release.*).
391
+ # Current MVP phase only support `.*` for wildcard.
392
+ # @!attribute [rw] disabled
393
+ # @return [::Boolean]
394
+ # Optional. Determines if the branch rule is disabled or not.
395
+ # @!attribute [rw] require_pull_request
396
+ # @return [::Boolean]
397
+ # Optional. Determines if the branch rule requires a pull request or not.
398
+ # @!attribute [rw] minimum_reviews_count
399
+ # @return [::Integer]
400
+ # Optional. The minimum number of reviews required for the branch rule to be
401
+ # matched.
402
+ # @!attribute [rw] minimum_approvals_count
403
+ # @return [::Integer]
404
+ # Optional. The minimum number of approvals required for the branch rule to
405
+ # be matched.
406
+ # @!attribute [rw] require_comments_resolved
407
+ # @return [::Boolean]
408
+ # Optional. Determines if require comments resolved before merging to the
409
+ # branch.
410
+ # @!attribute [rw] allow_stale_reviews
411
+ # @return [::Boolean]
412
+ # Optional. Determines if allow stale reviews or approvals before merging to
413
+ # the branch.
414
+ # @!attribute [rw] require_linear_history
415
+ # @return [::Boolean]
416
+ # Optional. Determines if require linear history before merging to the
417
+ # branch.
418
+ # @!attribute [rw] required_status_checks
419
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::BranchRule::Check>]
420
+ # Optional. List of required status checks before merging to the branch.
421
+ class BranchRule
422
+ include ::Google::Protobuf::MessageExts
423
+ extend ::Google::Protobuf::MessageExts::ClassMethods
424
+
425
+ # Check is a type for status check.
426
+ # @!attribute [rw] context
427
+ # @return [::String]
428
+ # Required. The context of the check.
429
+ class Check
430
+ include ::Google::Protobuf::MessageExts
431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
432
+ end
433
+
434
+ # @!attribute [rw] key
435
+ # @return [::String]
436
+ # @!attribute [rw] value
437
+ # @return [::String]
438
+ class AnnotationsEntry
439
+ include ::Google::Protobuf::MessageExts
440
+ extend ::Google::Protobuf::MessageExts::ClassMethods
441
+ end
442
+ end
443
+
353
444
  # ListInstancesRequest is the request to list instances.
354
445
  # @!attribute [rw] parent
355
446
  # @return [::String]
@@ -494,6 +585,15 @@ module Google
494
585
  # @!attribute [rw] filter
495
586
  # @return [::String]
496
587
  # Optional. Filter results.
588
+ # @!attribute [rw] instance
589
+ # @return [::String]
590
+ # Optional. The name of the instance in which the repository is hosted,
591
+ # formatted as
592
+ # `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
593
+ # When listing repositories via
594
+ # securesourcemanager.googleapis.com (Control Plane API), this field is
595
+ # required. When listing repositories via *.sourcemanager.dev (Data Plane
596
+ # API), this field is ignored.
497
597
  class ListRepositoriesRequest
498
598
  include ::Google::Protobuf::MessageExts
499
599
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -553,6 +653,84 @@ module Google
553
653
  include ::Google::Protobuf::MessageExts
554
654
  extend ::Google::Protobuf::MessageExts::ClassMethods
555
655
  end
656
+
657
+ # GetBranchRuleRequest is the request for getting a branch rule.
658
+ # @!attribute [rw] name
659
+ # @return [::String]
660
+ # Required. Name of the repository to retrieve.
661
+ # The format is
662
+ # `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
663
+ class GetBranchRuleRequest
664
+ include ::Google::Protobuf::MessageExts
665
+ extend ::Google::Protobuf::MessageExts::ClassMethods
666
+ end
667
+
668
+ # CreateBranchRuleRequest is the request to create a branch rule.
669
+ # @!attribute [rw] parent
670
+ # @return [::String]
671
+ # @!attribute [rw] branch_rule
672
+ # @return [::Google::Cloud::SecureSourceManager::V1::BranchRule]
673
+ # @!attribute [rw] branch_rule_id
674
+ # @return [::String]
675
+ class CreateBranchRuleRequest
676
+ include ::Google::Protobuf::MessageExts
677
+ extend ::Google::Protobuf::MessageExts::ClassMethods
678
+ end
679
+
680
+ # ListBranchRulesRequest is the request to list branch rules.
681
+ # @!attribute [rw] parent
682
+ # @return [::String]
683
+ # @!attribute [rw] page_size
684
+ # @return [::Integer]
685
+ # @!attribute [rw] page_token
686
+ # @return [::String]
687
+ class ListBranchRulesRequest
688
+ include ::Google::Protobuf::MessageExts
689
+ extend ::Google::Protobuf::MessageExts::ClassMethods
690
+ end
691
+
692
+ # DeleteBranchRuleRequest is the request to delete a branch rule.
693
+ # @!attribute [rw] name
694
+ # @return [::String]
695
+ # @!attribute [rw] allow_missing
696
+ # @return [::Boolean]
697
+ # Optional. If set to true, and the branch rule is not found, the request
698
+ # will succeed but no action will be taken on the server.
699
+ class DeleteBranchRuleRequest
700
+ include ::Google::Protobuf::MessageExts
701
+ extend ::Google::Protobuf::MessageExts::ClassMethods
702
+ end
703
+
704
+ # UpdateBranchRuleRequest is the request to update a branchRule.
705
+ # @!attribute [rw] branch_rule
706
+ # @return [::Google::Cloud::SecureSourceManager::V1::BranchRule]
707
+ # @!attribute [rw] validate_only
708
+ # @return [::Boolean]
709
+ # Optional. If set, validate the request and preview the review, but do not
710
+ # actually post it. (https://google.aip.dev/163, for declarative friendly)
711
+ # @!attribute [rw] update_mask
712
+ # @return [::Google::Protobuf::FieldMask]
713
+ # Required. Field mask is used to specify the fields to be overwritten in the
714
+ # branchRule resource by the update.
715
+ # The fields specified in the update_mask are relative to the resource, not
716
+ # the full request. A field will be overwritten if it is in the mask.
717
+ # The special value "*" means full replacement.
718
+ class UpdateBranchRuleRequest
719
+ include ::Google::Protobuf::MessageExts
720
+ extend ::Google::Protobuf::MessageExts::ClassMethods
721
+ end
722
+
723
+ # ListBranchRulesResponse is the response to listing branchRules.
724
+ # @!attribute [rw] branch_rules
725
+ # @return [::Array<::Google::Cloud::SecureSourceManager::V1::BranchRule>]
726
+ # The list of branch rules.
727
+ # @!attribute [rw] next_page_token
728
+ # @return [::String]
729
+ # A token identifying a page of results the server should return.
730
+ class ListBranchRulesResponse
731
+ include ::Google::Protobuf::MessageExts
732
+ extend ::Google::Protobuf::MessageExts::ClassMethods
733
+ end
556
734
  end
557
735
  end
558
736
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secure_source_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2024-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.5.6
149
+ rubygems_version: 3.5.21
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Regionally deployed, single-tenant managed source code repository hosted