Class AppsResource.ServicesResource.PatchRequest
Updates the configuration of the specified service.
Inheritance
Inherited Members
Namespace: Google.Apis.Appengine.v1
Assembly: Google.Apis.Appengine.v1.dll
Syntax
public class AppsResource.ServicesResource.PatchRequest : AppengineBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Service, string, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Service body, string appsId, string servicesId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Service | body | |
string | appsId | |
string | servicesId |
Properties
AppsId
Part of name
. Name of the resource to update. Example: apps/myapp/services/default.
Declaration
[RequestParameter("appsId", RequestParameterType.Path)]
public virtual string AppsId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MigrateTraffic
Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
Declaration
[RequestParameter("migrateTraffic", RequestParameterType.Query)]
public virtual bool? MigrateTraffic { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ServicesId
Part of name
. See documentation of appsId
.
Declaration
[RequestParameter("servicesId", RequestParameterType.Path)]
public virtual string ServicesId { get; }
Property Value
Type | Description |
---|---|
string |
UpdateMask
Required. Standard field mask for the set of fields to be updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()