Autogenerated update (2018-05-14)
Update: - sourcerepo_v1
This commit is contained in:
parent
4fd6a9ced2
commit
7fac6da4a7
|
@ -70033,9 +70033,20 @@
|
||||||
"/sourcerepo:v1/Policy/rules": rules
|
"/sourcerepo:v1/Policy/rules": rules
|
||||||
"/sourcerepo:v1/Policy/rules/rule": rule
|
"/sourcerepo:v1/Policy/rules/rule": rule
|
||||||
"/sourcerepo:v1/Policy/version": version
|
"/sourcerepo:v1/Policy/version": version
|
||||||
|
"/sourcerepo:v1/ProjectConfig": project_config
|
||||||
|
"/sourcerepo:v1/ProjectConfig/enablePrivateKeyCheck": enable_private_key_check
|
||||||
|
"/sourcerepo:v1/ProjectConfig/name": name
|
||||||
|
"/sourcerepo:v1/ProjectConfig/pubsubConfigs": pubsub_configs
|
||||||
|
"/sourcerepo:v1/ProjectConfig/pubsubConfigs/pubsub_config": pubsub_config
|
||||||
|
"/sourcerepo:v1/PubsubConfig": pubsub_config
|
||||||
|
"/sourcerepo:v1/PubsubConfig/messageFormat": message_format
|
||||||
|
"/sourcerepo:v1/PubsubConfig/serviceAccountEmail": service_account_email
|
||||||
|
"/sourcerepo:v1/PubsubConfig/topic": topic
|
||||||
"/sourcerepo:v1/Repo": repo
|
"/sourcerepo:v1/Repo": repo
|
||||||
"/sourcerepo:v1/Repo/mirrorConfig": mirror_config
|
"/sourcerepo:v1/Repo/mirrorConfig": mirror_config
|
||||||
"/sourcerepo:v1/Repo/name": name
|
"/sourcerepo:v1/Repo/name": name
|
||||||
|
"/sourcerepo:v1/Repo/pubsubConfigs": pubsub_configs
|
||||||
|
"/sourcerepo:v1/Repo/pubsubConfigs/pubsub_config": pubsub_config
|
||||||
"/sourcerepo:v1/Repo/size": size
|
"/sourcerepo:v1/Repo/size": size
|
||||||
"/sourcerepo:v1/Repo/url": url
|
"/sourcerepo:v1/Repo/url": url
|
||||||
"/sourcerepo:v1/Rule": rule
|
"/sourcerepo:v1/Rule": rule
|
||||||
|
@ -70060,9 +70071,17 @@
|
||||||
"/sourcerepo:v1/TestIamPermissionsResponse": test_iam_permissions_response
|
"/sourcerepo:v1/TestIamPermissionsResponse": test_iam_permissions_response
|
||||||
"/sourcerepo:v1/TestIamPermissionsResponse/permissions": permissions
|
"/sourcerepo:v1/TestIamPermissionsResponse/permissions": permissions
|
||||||
"/sourcerepo:v1/TestIamPermissionsResponse/permissions/permission": permission
|
"/sourcerepo:v1/TestIamPermissionsResponse/permissions/permission": permission
|
||||||
|
"/sourcerepo:v1/UpdateProjectConfigRequest": update_project_config_request
|
||||||
|
"/sourcerepo:v1/UpdateProjectConfigRequest/projectConfig": project_config
|
||||||
|
"/sourcerepo:v1/UpdateProjectConfigRequest/updateMask": update_mask
|
||||||
|
"/sourcerepo:v1/UpdateRepoRequest": update_repo_request
|
||||||
|
"/sourcerepo:v1/UpdateRepoRequest/repo": repo
|
||||||
|
"/sourcerepo:v1/UpdateRepoRequest/updateMask": update_mask
|
||||||
"/sourcerepo:v1/fields": fields
|
"/sourcerepo:v1/fields": fields
|
||||||
"/sourcerepo:v1/key": key
|
"/sourcerepo:v1/key": key
|
||||||
"/sourcerepo:v1/quotaUser": quota_user
|
"/sourcerepo:v1/quotaUser": quota_user
|
||||||
|
"/sourcerepo:v1/sourcerepo.projects.getConfig": get_project_config
|
||||||
|
"/sourcerepo:v1/sourcerepo.projects.getConfig/name": name
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.create": create_project_repo
|
"/sourcerepo:v1/sourcerepo.projects.repos.create": create_project_repo
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.create/parent": parent
|
"/sourcerepo:v1/sourcerepo.projects.repos.create/parent": parent
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.delete": delete_project_repo
|
"/sourcerepo:v1/sourcerepo.projects.repos.delete": delete_project_repo
|
||||||
|
@ -70075,10 +70094,14 @@
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.list/name": name
|
"/sourcerepo:v1/sourcerepo.projects.repos.list/name": name
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.list/pageSize": page_size
|
"/sourcerepo:v1/sourcerepo.projects.repos.list/pageSize": page_size
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.list/pageToken": page_token
|
"/sourcerepo:v1/sourcerepo.projects.repos.list/pageToken": page_token
|
||||||
|
"/sourcerepo:v1/sourcerepo.projects.repos.patch": patch_project_repo
|
||||||
|
"/sourcerepo:v1/sourcerepo.projects.repos.patch/name": name
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy": set_repo_iam_policy
|
"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy": set_repo_iam_policy
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy/resource": resource
|
"/sourcerepo:v1/sourcerepo.projects.repos.setIamPolicy/resource": resource
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.testIamPermissions": test_repo_iam_permissions
|
"/sourcerepo:v1/sourcerepo.projects.repos.testIamPermissions": test_repo_iam_permissions
|
||||||
"/sourcerepo:v1/sourcerepo.projects.repos.testIamPermissions/resource": resource
|
"/sourcerepo:v1/sourcerepo.projects.repos.testIamPermissions/resource": resource
|
||||||
|
"/sourcerepo:v1/sourcerepo.projects.updateConfig": update_project_config
|
||||||
|
"/sourcerepo:v1/sourcerepo.projects.updateConfig/name": name
|
||||||
"/spanner:v1/AuditConfig": audit_config
|
"/spanner:v1/AuditConfig": audit_config
|
||||||
"/spanner:v1/AuditConfig/auditLogConfigs": audit_log_configs
|
"/spanner:v1/AuditConfig/auditLogConfigs": audit_log_configs
|
||||||
"/spanner:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
|
"/spanner:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/source-repositories/docs/apis
|
# @see https://cloud.google.com/source-repositories/docs/apis
|
||||||
module SourcerepoV1
|
module SourcerepoV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20180226'
|
REVISION = '20180430'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -73,7 +73,6 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The configuration for logging of each type of permission.
|
# The configuration for logging of each type of permission.
|
||||||
# Next ID: 4
|
|
||||||
# Corresponds to the JSON property `auditLogConfigs`
|
# Corresponds to the JSON property `auditLogConfigs`
|
||||||
# @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
|
# @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
|
||||||
attr_accessor :audit_log_configs
|
attr_accessor :audit_log_configs
|
||||||
|
@ -150,7 +149,7 @@ module Google
|
||||||
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||||
# who is authenticated with a Google account or a service account.
|
# who is authenticated with a Google account or a service account.
|
||||||
# * `user:`emailid``: An email address that represents a specific Google
|
# * `user:`emailid``: An email address that represents a specific Google
|
||||||
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
# account. For example, `alice@gmail.com` .
|
||||||
# * `serviceAccount:`emailid``: An email address that represents a service
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
||||||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||||
# * `group:`emailid``: An email address that represents a Google group.
|
# * `group:`emailid``: An email address that represents a Google group.
|
||||||
|
@ -264,11 +263,11 @@ module Google
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||||
# specify access control policies for Cloud Platform resources.
|
# specify access control policies for Cloud Platform resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
||||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||||
# defined by IAM.
|
# defined by IAM.
|
||||||
# **Example**
|
# **JSON Example**
|
||||||
# `
|
# `
|
||||||
# "bindings": [
|
# "bindings": [
|
||||||
# `
|
# `
|
||||||
|
@ -277,7 +276,7 @@ module Google
|
||||||
# "user:mike@example.com",
|
# "user:mike@example.com",
|
||||||
# "group:admins@example.com",
|
# "group:admins@example.com",
|
||||||
# "domain:google.com",
|
# "domain:google.com",
|
||||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
|
@ -286,6 +285,17 @@ module Google
|
||||||
# `
|
# `
|
||||||
# ]
|
# ]
|
||||||
# `
|
# `
|
||||||
|
# **YAML Example**
|
||||||
|
# bindings:
|
||||||
|
# - members:
|
||||||
|
# - user:mike@example.com
|
||||||
|
# - group:admins@example.com
|
||||||
|
# - domain:google.com
|
||||||
|
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
||||||
|
# role: roles/owner
|
||||||
|
# - members:
|
||||||
|
# - user:sean@example.com
|
||||||
|
# role: roles/viewer
|
||||||
# For a description of IAM and its features, see the
|
# For a description of IAM and its features, see the
|
||||||
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||||
class Policy
|
class Policy
|
||||||
|
@ -334,6 +344,76 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Cloud Source Repositories configuration of a project.
|
||||||
|
class ProjectConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Reject a Git push that contains a private key.
|
||||||
|
# Corresponds to the JSON property `enablePrivateKeyCheck`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :enable_private_key_check
|
||||||
|
alias_method :enable_private_key_check?, :enable_private_key_check
|
||||||
|
|
||||||
|
# The name of the project. Values are of the form `projects/<project>`.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# How this project publishes a change in the repositories through Cloud
|
||||||
|
# Pub/Sub. Keyed by the topic names.
|
||||||
|
# Corresponds to the JSON property `pubsubConfigs`
|
||||||
|
# @return [Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>]
|
||||||
|
attr_accessor :pubsub_configs
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@enable_private_key_check = args[:enable_private_key_check] if args.key?(:enable_private_key_check)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@pubsub_configs = args[:pubsub_configs] if args.key?(:pubsub_configs)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Configuration to publish a Cloud Pub/Sub message.
|
||||||
|
class PubsubConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The format of the Cloud Pub/Sub messages.
|
||||||
|
# Corresponds to the JSON property `messageFormat`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :message_format
|
||||||
|
|
||||||
|
# Email address of the service account used for publishing Cloud Pub/Sub
|
||||||
|
# messages. This service account needs to be in the same project as the
|
||||||
|
# PubsubConfig. When added, the caller needs to have
|
||||||
|
# iam.serviceAccounts.actAs permission on this service account. If
|
||||||
|
# unspecified, it defaults to the compute engine default service account.
|
||||||
|
# Corresponds to the JSON property `serviceAccountEmail`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service_account_email
|
||||||
|
|
||||||
|
# A topic of Cloud Pub/Sub. Values are of the form
|
||||||
|
# `projects/<project>/topics/<topic>`. The project needs to be the same
|
||||||
|
# project as this config is in.
|
||||||
|
# Corresponds to the JSON property `topic`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :topic
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@message_format = args[:message_format] if args.key?(:message_format)
|
||||||
|
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
||||||
|
@topic = args[:topic] if args.key?(:topic)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A repository (or repo) is a Git repository storing versioned source content.
|
# A repository (or repo) is a Git repository storing versioned source content.
|
||||||
class Repo
|
class Repo
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -351,6 +431,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# How this repository publishes a change in the repository through Cloud
|
||||||
|
# Pub/Sub. Keyed by the topic names.
|
||||||
|
# Corresponds to the JSON property `pubsubConfigs`
|
||||||
|
# @return [Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>]
|
||||||
|
attr_accessor :pubsub_configs
|
||||||
|
|
||||||
# The disk usage of the repo, in bytes. Read-only field. Size is only
|
# The disk usage of the repo, in bytes. Read-only field. Size is only
|
||||||
# returned by GetRepo.
|
# returned by GetRepo.
|
||||||
# Corresponds to the JSON property `size`
|
# Corresponds to the JSON property `size`
|
||||||
|
@ -371,6 +457,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@mirror_config = args[:mirror_config] if args.key?(:mirror_config)
|
@mirror_config = args[:mirror_config] if args.key?(:mirror_config)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@pubsub_configs = args[:pubsub_configs] if args.key?(:pubsub_configs)
|
||||||
@size = args[:size] if args.key?(:size)
|
@size = args[:size] if args.key?(:size)
|
||||||
@url = args[:url] if args.key?(:url)
|
@url = args[:url] if args.key?(:url)
|
||||||
end
|
end
|
||||||
|
@ -382,11 +469,11 @@ module Google
|
||||||
|
|
||||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||||
# specify access control policies for Cloud Platform resources.
|
# specify access control policies for Cloud Platform resources.
|
||||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
||||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||||
# defined by IAM.
|
# defined by IAM.
|
||||||
# **Example**
|
# **JSON Example**
|
||||||
# `
|
# `
|
||||||
# "bindings": [
|
# "bindings": [
|
||||||
# `
|
# `
|
||||||
|
@ -395,7 +482,7 @@ module Google
|
||||||
# "user:mike@example.com",
|
# "user:mike@example.com",
|
||||||
# "group:admins@example.com",
|
# "group:admins@example.com",
|
||||||
# "domain:google.com",
|
# "domain:google.com",
|
||||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
||||||
# ]
|
# ]
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
|
@ -404,6 +491,17 @@ module Google
|
||||||
# `
|
# `
|
||||||
# ]
|
# ]
|
||||||
# `
|
# `
|
||||||
|
# **YAML Example**
|
||||||
|
# bindings:
|
||||||
|
# - members:
|
||||||
|
# - user:mike@example.com
|
||||||
|
# - group:admins@example.com
|
||||||
|
# - domain:google.com
|
||||||
|
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
|
||||||
|
# role: roles/owner
|
||||||
|
# - members:
|
||||||
|
# - user:sean@example.com
|
||||||
|
# role: roles/viewer
|
||||||
# For a description of IAM and its features, see the
|
# For a description of IAM and its features, see the
|
||||||
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||||
# Corresponds to the JSON property `policy`
|
# Corresponds to the JSON property `policy`
|
||||||
|
@ -471,6 +569,60 @@ module Google
|
||||||
@permissions = args[:permissions] if args.key?(:permissions)
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request for UpdateProjectConfig.
|
||||||
|
class UpdateProjectConfigRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Cloud Source Repositories configuration of a project.
|
||||||
|
# Corresponds to the JSON property `projectConfig`
|
||||||
|
# @return [Google::Apis::SourcerepoV1::ProjectConfig]
|
||||||
|
attr_accessor :project_config
|
||||||
|
|
||||||
|
# A FieldMask specifying which fields of the project_config to modify. Only
|
||||||
|
# the fields in the mask will be modified. If no mask is provided, this
|
||||||
|
# request is no-op.
|
||||||
|
# Corresponds to the JSON property `updateMask`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_mask
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@project_config = args[:project_config] if args.key?(:project_config)
|
||||||
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request for UpdateRepo.
|
||||||
|
class UpdateRepoRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A repository (or repo) is a Git repository storing versioned source content.
|
||||||
|
# Corresponds to the JSON property `repo`
|
||||||
|
# @return [Google::Apis::SourcerepoV1::Repo]
|
||||||
|
attr_accessor :repo
|
||||||
|
|
||||||
|
# A FieldMask specifying which fields of the repo to modify. Only the fields
|
||||||
|
# in the mask will be modified. If no mask is provided, this request is
|
||||||
|
# no-op.
|
||||||
|
# Corresponds to the JSON property `updateMask`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_mask
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@repo = args[:repo] if args.key?(:repo)
|
||||||
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -64,6 +64,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ProjectConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PubsubConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Repo
|
class Repo
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -88,6 +100,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class UpdateProjectConfigRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateRepoRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class AuditConfig
|
class AuditConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -149,12 +173,33 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ProjectConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :enable_private_key_check, as: 'enablePrivateKeyCheck'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :pubsub_configs, as: 'pubsubConfigs', class: Google::Apis::SourcerepoV1::PubsubConfig, decorator: Google::Apis::SourcerepoV1::PubsubConfig::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PubsubConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :message_format, as: 'messageFormat'
|
||||||
|
property :service_account_email, as: 'serviceAccountEmail'
|
||||||
|
property :topic, as: 'topic'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Repo
|
class Repo
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
|
property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
|
||||||
|
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
hash :pubsub_configs, as: 'pubsubConfigs', class: Google::Apis::SourcerepoV1::PubsubConfig, decorator: Google::Apis::SourcerepoV1::PubsubConfig::Representation
|
||||||
|
|
||||||
property :size, :numeric_string => true, as: 'size'
|
property :size, :numeric_string => true, as: 'size'
|
||||||
property :url, as: 'url'
|
property :url, as: 'url'
|
||||||
end
|
end
|
||||||
|
@ -182,6 +227,24 @@ module Google
|
||||||
collection :permissions, as: 'permissions'
|
collection :permissions, as: 'permissions'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class UpdateProjectConfigRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :project_config, as: 'projectConfig', class: Google::Apis::SourcerepoV1::ProjectConfig, decorator: Google::Apis::SourcerepoV1::ProjectConfig::Representation
|
||||||
|
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UpdateRepoRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :repo, as: 'repo', class: Google::Apis::SourcerepoV1::Repo, decorator: Google::Apis::SourcerepoV1::Repo::Representation
|
||||||
|
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,6 +47,71 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns the Cloud Source Repositories configuration of the project.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the requested project. Values are of the form
|
||||||
|
# `projects/<project>`.
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::SourcerepoV1::ProjectConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SourcerepoV1::ProjectConfig]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}/config', options)
|
||||||
|
command.response_representation = Google::Apis::SourcerepoV1::ProjectConfig::Representation
|
||||||
|
command.response_class = Google::Apis::SourcerepoV1::ProjectConfig
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates the Cloud Source Repositories configuration of the project.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the requested project. Values are of the form
|
||||||
|
# `projects/<project>`.
|
||||||
|
# @param [Google::Apis::SourcerepoV1::UpdateProjectConfigRequest] update_project_config_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::SourcerepoV1::ProjectConfig] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SourcerepoV1::ProjectConfig]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def update_project_config(name, update_project_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}/config', options)
|
||||||
|
command.request_representation = Google::Apis::SourcerepoV1::UpdateProjectConfigRequest::Representation
|
||||||
|
command.request_object = update_project_config_request_object
|
||||||
|
command.response_representation = Google::Apis::SourcerepoV1::ProjectConfig::Representation
|
||||||
|
command.response_class = Google::Apis::SourcerepoV1::ProjectConfig
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Creates a repo in the given project with the given name.
|
# Creates a repo in the given project with the given name.
|
||||||
# If the named repository already exists, `CreateRepo` returns
|
# If the named repository already exists, `CreateRepo` returns
|
||||||
# `ALREADY_EXISTS`.
|
# `ALREADY_EXISTS`.
|
||||||
|
@ -219,6 +284,40 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates information about a repo.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the requested repository. Values are of the form
|
||||||
|
# `projects/<project>/repos/<repo>`.
|
||||||
|
# @param [Google::Apis::SourcerepoV1::UpdateRepoRequest] update_repo_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::SourcerepoV1::Repo] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SourcerepoV1::Repo]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def patch_project_repo(name, update_repo_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||||
|
command.request_representation = Google::Apis::SourcerepoV1::UpdateRepoRequest::Representation
|
||||||
|
command.request_object = update_repo_request_object
|
||||||
|
command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
|
||||||
|
command.response_class = Google::Apis::SourcerepoV1::Repo
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Sets the access control policy on the specified resource. Replaces any
|
# Sets the access control policy on the specified resource. Replaces any
|
||||||
# existing policy.
|
# existing policy.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
|
|
Loading…
Reference in New Issue